From: Joey Hess Date: Wed, 16 Jun 2010 20:07:41 +0000 (-0400) Subject: force list context X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/eff5e233a2a3bf5e965c17734a3ad765c5fe9df5?hp=69c22fa1ea143e3eb36692e087b167ae2171581e 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=""; }