aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/git.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-10-08 18:02:47 -0400
committerJoey Hess <joey@kitenet.net>2010-10-08 18:02:47 -0400
commit5c6f7a8d1b805001a3d1ee912683755cec773682 (patch)
tree424edc6efbd279597d2a43991c4a3566174e73e1 /IkiWiki/Plugin/git.pm
parent84111d96c461a5d31a615ebf64cae751e6fd9aef (diff)
downloadikiwiki-5c6f7a8d1b805001a3d1ee912683755cec773682.tar
ikiwiki-5c6f7a8d1b805001a3d1ee912683755cec773682.tar.gz
fix rcs_prepedit implementation to match spec
Diffstat (limited to 'IkiWiki/Plugin/git.pm')
-rw-r--r--IkiWiki/Plugin/git.pm14
1 files changed, 5 insertions, 9 deletions
diff --git a/IkiWiki/Plugin/git.pm b/IkiWiki/Plugin/git.pm
index 996ab6fba..48e71aa9a 100644
--- a/IkiWiki/Plugin/git.pm
+++ b/IkiWiki/Plugin/git.pm
@@ -836,19 +836,15 @@ sub rcs_receive () {
return reverse @rets;
}
-sub rcs_preprevert (@) {
- my %params = @_;
- my $rev = $params{rev};
-
- # Note test_changes expects 'cgi' and 'session' parameters.
- require IkiWiki::Receive;
- IkiWiki::Receive::test_changes(%params, changes =>
- [git_parse_changes(git_commit_info($rev, 1))]);
+sub rcs_preprevert ($) {
+ my $rev=shift;
+
+ return git_parse_changes(git_commit_info($rev, 1));
}
sub rcs_revert ($) {
# Try to revert the given rev; returns undef on _success_.
- my $rev = $shift;
+ my $rev = shift;
if (run_or_non('git', 'revert', '--no-commit', $rev)) {
return undef;