diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-07-30 14:32:48 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-07-30 14:32:48 -0400 |
commit | 6c8a8dd13b96f2990f58596c7ec5e7c497b39cbe (patch) | |
tree | 4cdb03750aa6178cd43ca744106c69987ceef2eb /IkiWiki/Plugin/git.pm | |
parent | 12c5786df4e74c143f24398b8d0028000b61daba (diff) | |
download | ikiwiki-6c8a8dd13b96f2990f58596c7ec5e7c497b39cbe.tar ikiwiki-6c8a8dd13b96f2990f58596c7ec5e7c497b39cbe.tar.gz |
add guard against enabling multiple rcs plugins
Diffstat (limited to 'IkiWiki/Plugin/git.pm')
-rw-r--r-- | IkiWiki/Plugin/git.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/git.pm b/IkiWiki/Plugin/git.pm index 5e302729e..6f0ac56d5 100644 --- a/IkiWiki/Plugin/git.pm +++ b/IkiWiki/Plugin/git.pm @@ -11,6 +11,9 @@ 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 sub import { #{{{ + if (exists $IkiWiki::hooks{rcs}) { + error(gettext("cannot use multiple rcs plugins")); + } hook(type => "checkconfig", id => "git", call => \&checkconfig); hook(type => "getsetup", id => "git", call => \&getsetup); hook(type => "rcs", id => "rcs_update", call => \&rcs_update); |