Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix branch name when in sync with upstream

Fixes #125
  • Loading branch information...
commit 3db1e6e36e892fac97ee49d8028c1bc1346125c1 1 parent 6566f3c
@dahlbyk authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  GitUtils.ps1
View
2  GitUtils.ps1
@@ -146,7 +146,7 @@ function Get-GitStatus($gitDir = (Get-GitDirectory)) {
}
}
- '^## (?<branch>\S+)(?:\.\.\.(?<upstream>\S+) \[(?:ahead (?<ahead>\d+))?(?:, )?(?:behind (?<behind>\d+))?\])?$' {
+ '^## (?<branch>\S+?)(?:\.\.\.(?<upstream>\S+))?(?: \[(?:ahead (?<ahead>\d+))?(?:, )?(?:behind (?<behind>\d+))?\])?$' {
$branch = $matches['branch']
$upstream = $matches['upstream']
$aheadBy = [int]$matches['ahead']

1 comment on commit 3db1e6e

@grot1961

filemon 2 002
Do kompletu przesłane.

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