From b0a54eafe9a6c62ac45070f11328217f5811dd8d Mon Sep 17 00:00:00 2001 From: Michael Pyne Date: Fri, 30 Mar 2012 00:21:26 -0400 Subject: [PATCH] Check for the "no output" case in filter_program_output. E.g. for git command output when we haven't quite cloned the module for the first time you're likely to get undef for the output (since the command will just fail). Check for that. --- kdesrc-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kdesrc-build b/kdesrc-build index 9bcf27e..26ba6ac 100755 --- a/kdesrc-build +++ b/kdesrc-build @@ -4822,7 +4822,7 @@ sub git_commit_id undef, # No filter qw/git --git-dir/, $gitdir, 'rev-parse', $commit, ); - chomp $id; + chomp $id if $id; return $id; }