Skip to content
Browse files

make_patchnum.pl: handle not on a branch properly

  • Loading branch information...
1 parent 40c852d commit 9077509c9b9bc1871867a5fba4351b95c670298d @iabyn iabyn committed Jul 3, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 make_patchnum.pl
View
2 make_patchnum.pl
@@ -133,7 +133,7 @@ sub write_files {
}
elsif (-d "$srcdir/.git") {
# git branch | awk 'BEGIN{ORS=""} /\*/ { print $2 }'
- ($branch) = map { /\* ([^(]\S*)/ ? $1 : () } backtick("git branch");
+ ($branch) = map { /\* ([^(]\S*)/ ? $1 : "" } backtick("git branch");
my ($remote,$merge);
if (length $branch) {
$merge= backtick("git config branch.$branch.merge");

0 comments on commit 9077509

Please sign in to comment.
Something went wrong with that request. Please try again.