diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-07-26 18:29:33 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-07-26 18:29:33 -0400 |
commit | 2bbe1bf9af4ba20f28a17d5e16a467313d2e37bd (patch) | |
tree | 395f7ec18e791694980c0c098eca272da59d9c44 /IkiWiki/Rcs | |
parent | 90b310b93c3dc3c9e7142fc8d1e0c8c7562659b2 (diff) |
move more settings out to rcs
Diffstat (limited to 'IkiWiki/Rcs')
-rw-r--r-- | IkiWiki/Rcs/git.pm | 9 |
1 files changed, 9 insertions, 0 deletions
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 => { |