VersionGuesser: local branches still need to be considered
parent
db2f09a361
commit
b3c465d55a
|
@ -142,7 +142,7 @@ class VersionGuesser
|
|||
}
|
||||
|
||||
if ($branch && !preg_match('{^ *.+/HEAD }', $branch)) {
|
||||
if (preg_match('{^(?:\* )? *((?:remotes/(?:origin|upstream)/)[^\s/]+) *([a-f0-9]+) .*$}', $branch, $match)) {
|
||||
if (preg_match('{^(?:\* )? *((?:remotes/(?:origin|upstream)/)?[^\s/]+) *([a-f0-9]+) .*$}', $branch, $match)) {
|
||||
$branches[] = $match[1];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue