aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-06-23 21:29:47 -0400
committerJoey Hess <joey@kitenet.net>2010-06-23 21:29:47 -0400
commitd8d057c356e0244585aa0eac075b39958c6c3f37 (patch)
tree4b70dc1f375f0316fef5f0b27fd1045bc6df289b
parentcf5b767777bf922ef55cdc51adef024436d2171e (diff)
downloadikiwiki-d8d057c356e0244585aa0eac075b39958c6c3f37.tar
ikiwiki-d8d057c356e0244585aa0eac075b39958c6c3f37.tar.gz
chdir to srcdir in rcs_getctime
-rw-r--r--IkiWiki/Plugin/cvs.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/cvs.pm b/IkiWiki/Plugin/cvs.pm
index 1a432c052..4972efb58 100644
--- a/IkiWiki/Plugin/cvs.pm
+++ b/IkiWiki/Plugin/cvs.pm
@@ -459,7 +459,9 @@ sub rcs_diff ($) {
}
sub rcs_getctime ($) {
- my $file=$config{srcdir}."/".shift();
+ my $file=shift;
+
+ local $CWD = $config{srcdir};
my $cvs_log_infoline=qr/^date: (.+);\s+author/;