From: Joey Hess Date: Mon, 4 Oct 2010 20:01:21 +0000 (-0400) Subject: fix bug if git_root is "0" X-Git-Url: http://git.tremily.us/?p=ikiwiki.git;a=commitdiff_plain;h=49ef98505aa7ada6b1de81860c7e69b600b6c953 fix bug if git_root is "0" --- 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};