aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-10-04 16:01:21 -0400
committerJoey Hess <joey@kitenet.net>2010-10-04 16:01:21 -0400
commit49ef98505aa7ada6b1de81860c7e69b600b6c953 (patch)
tree0b2636e3fd35af2fe128d3e786dd31d493b99a33 /IkiWiki
parent252e3f600670040b2a184e5ca0581db720096a80 (diff)
downloadikiwiki-49ef98505aa7ada6b1de81860c7e69b600b6c953.tar
ikiwiki-49ef98505aa7ada6b1de81860c7e69b600b6c953.tar.gz
fix bug if git_root is "0"
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/git.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/git.pm b/IkiWiki/Plugin/git.pm
index 457975d95..b6ed61428 100644
--- a/IkiWiki/Plugin/git.pm
+++ b/IkiWiki/Plugin/git.pm
@@ -729,7 +729,7 @@ sub git_find_root {
# Determine if it is in a subdirectory by examining the srcdir,
# and its parents, looking for the .git directory.
- return $git_root if $git_root;
+ return $git_root if defined $git_root;
my $subdir="";
my $dir=$config{srcdir};