From 3fd86def96f1f946dfbc1d847b57aeba11428b9b Mon Sep 17 00:00:00 2001 From: joey Date: Wed, 10 Oct 2007 18:15:15 +0000 Subject: * French translation update. Closes: #445923 * Fix --get-ctime with git, needed to remove srcdir from filename. --- IkiWiki/Rcs/git.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'IkiWiki') diff --git a/IkiWiki/Rcs/git.pm b/IkiWiki/Rcs/git.pm index 563d10859..070bf3208 100644 --- a/IkiWiki/Rcs/git.pm +++ b/IkiWiki/Rcs/git.pm @@ -460,9 +460,9 @@ sub rcs_notify () { #{{{ } #}}} sub rcs_getctime ($) { #{{{ - # Get the ctime of file. - - my ($file) = @_; + my $file=shift; + # Remove srcdir prefix + $file =~ s/^\Q$config{srcdir}\E\/?//; my $sha1 = git_sha1($file); my $ci = git_commit_info($sha1); -- cgit v1.2.3