From: Ian Jackson Date: Sun, 18 Feb 2018 00:06:14 +0000 (+0000) Subject: git-debrebase: fix cfg in scalar context (!) X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=caa061d1db76ac08c5462237c1a71019b9df8aa3;p=dgit.git git-debrebase: fix cfg in scalar context (!) Signed-off-by: Ian Jackson --- diff --git a/git-debrebase b/git-debrebase index 932a3b7a..403fba1b 100755 --- a/git-debrebase +++ b/git-debrebase @@ -111,7 +111,8 @@ sub cfg ($;$) { fail "missing required git config $k" unless $optional; return (); } - return split /\0/, $out; + my @l = split /\0/, $out; + return wantarray ? @l : $l[0]; } memoize('cfg');