aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-06-16 16:07:41 -0400
committerJoey Hess <joey@kitenet.net>2010-06-16 16:07:41 -0400
commiteff5e233a2a3bf5e965c17734a3ad765c5fe9df5 (patch)
tree23bcd418251143093953e1c3e35bc7a6f0287b45
parent69c22fa1ea143e3eb36692e087b167ae2171581e (diff)
downloadikiwiki-eff5e233a2a3bf5e965c17734a3ad765c5fe9df5.tar
ikiwiki-eff5e233a2a3bf5e965c17734a3ad765c5fe9df5.tar.gz
force list context
run_or_die returns a status code in scalar context
-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 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="";
}