summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-04-04 19:04:02 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-04-04 19:04:02 -0400
commit4cf70291bcc4fbeeb2a6233a121b5d9f9c00344d (patch)
tree8a2f1d6f1f5ae1e842620dcfec001a0d358f2a9f /IkiWiki
parentf3207cddc1db58e061bb7562482382c4d193dc26 (diff)
remove unnecessary variable
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/darcs.pm7
1 files changed, 2 insertions, 5 deletions
diff --git a/IkiWiki/Plugin/darcs.pm b/IkiWiki/Plugin/darcs.pm
index de9ef4f03..9b62e70e4 100644
--- a/IkiWiki/Plugin/darcs.pm
+++ b/IkiWiki/Plugin/darcs.pm
@@ -393,16 +393,13 @@ sub rcs_getctime ($) {
eval q{use XML::Simple};
local $/=undef;
- # Sigh... doing things the hard way again
- my $repodir=$config{srcdir};
-
- my $filer=substr($file, length($repodir));
+ my $filer=substr($file, length($config{srcdir}));
$filer =~ s:^[/]+::;
my $child = open(LOG, "-|");
if (! $child) {
exec("darcs", "changes", "--xml", "--reverse",
- "--repodir", "$repodir", "$filer")
+ "--repodir", $config{srcdir}, $filer)
|| error("'darcs changes $filer' failed to run");
}