From eff5e233a2a3bf5e965c17734a3ad765c5fe9df5 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 16 Jun 2010 16:07:41 -0400 Subject: [PATCH] force list context run_or_die returns a status code in scalar context --- IkiWiki/Plugin/git.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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=""; } -- 2.26.2