From: Joey Hess Date: Wed, 16 Jun 2010 20:07:41 +0000 (-0400) Subject: force list context X-Git-Tag: 3.20100623~48 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=eff5e233a2a3bf5e965c17734a3ad765c5fe9df5;p=ikiwiki.git force list context run_or_die returns a status code in scalar context --- diff --git a/IkiWiki/Plugin/git.pm b/IkiWiki/Plugin/git.pm index bb3f89a82..222692eda 100644 --- a/IkiWiki/Plugin/git.pm +++ b/IkiWiki/Plugin/git.pm @@ -294,7 +294,7 @@ sub decode_git_file ($) { # strip prefix if in a subdir if (! defined $prefix) { - $prefix = run_or_die('git', 'rev-parse', '--show-prefix'); + ($prefix) = run_or_die('git', 'rev-parse', '--show-prefix'); if (! defined $prefix) { $prefix=""; }