1 Index: IkiWiki/Rcs/git.pm
2 ===================================================================
3 --- IkiWiki/Rcs/git.pm (revision 4532)
4 +++ IkiWiki/Rcs/git.pm (working copy)
7 my $file = shift || q{--};
9 + # Remove srcdir prefix to appease git-rev-list
10 + $file =~ s/^$config{srcdir}\/?//;
12 # Ignore error since a non-existing file might be given.
13 my ($sha1) = run_or_non('git-rev-list', '--max-count=1', 'HEAD', $file);
16 I actually see a bug in this patch. :-) If srcdir = "foo" and the wiki
17 contains a "foo/bar" and a "bar", this will make it, in the non-ctime case,
18 get the sha1 of the wrong file, "bar", when "foo/bar" is asked for.
20 Better to strip the path out in getctime, I guess.