]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Rcs/git.pm
* French translation update. Closes: #445923
[ikiwiki.git] / IkiWiki / Rcs / git.pm
index 563d10859eb6edb71a3ba03e838a9dd319f704d5..070bf3208287bd52634bfe3d8c5dca513e20f6e8 100644 (file)
@@ -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);