This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
UCD.t: white space only
[perl5.git]
/
make_patchnum.pl
diff --git
a/make_patchnum.pl
b/make_patchnum.pl
index
fcbfc6c
..
9d83dd5
100644
(file)
--- a/
make_patchnum.pl
+++ b/
make_patchnum.pl
@@
-133,7
+133,8
@@
if (my $patch_file= read_file(".patch")) {
}
elsif (-d "$srcdir/.git") {
# git branch | awk 'BEGIN{ORS=""} /\*/ { print $2 }'
}
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");
+ $branch //= "";
my ($remote,$merge);
if (length $branch) {
$merge= backtick("git config branch.$branch.merge");
my ($remote,$merge);
if (length $branch) {
$merge= backtick("git config branch.$branch.merge");