From 2bbe1bf9af4ba20f28a17d5e16a467313d2e37bd Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 26 Jul 2008 18:29:33 -0400 Subject: move more settings out to rcs --- IkiWiki/Rcs/git.pm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'IkiWiki') diff --git a/IkiWiki/Rcs/git.pm b/IkiWiki/Rcs/git.pm index 7c3ae9276..bcf317002 100644 --- a/IkiWiki/Rcs/git.pm +++ b/IkiWiki/Rcs/git.pm @@ -11,6 +11,15 @@ use open qw{:utf8 :std}; my $sha1_pattern = qr/[0-9a-fA-F]{40}/; # pattern to validate Git sha1sums my $dummy_commit_msg = 'dummy commit'; # message to skip in recent changes +hook(type => "checkconfig", id => "git", call => sub { #{{{ + if (! defined $config{gitorigin_branch}) { + $config{gitorigin_branch}="origin"; + } + if (! defined $config{gitmaster_branch}) { + $config{gitmaster_branch}="master"; + } +}); #}}} + hook(type => "getsetup", id => "git", call => sub { #{{{ return historyurl => { -- cgit v1.2.3