Try to fix git-get-branch.sh call on Windows
This commit is contained in:
parent
e2ddc03dfe
commit
51031cc1fe
2 changed files with 9 additions and 1 deletions
2
scripts/git-get-branch.ps1
Normal file
2
scripts/git-get-branch.ps1
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$HASH = git log --pretty=%h -1
|
||||
git show-ref | select-string $HASH | select-string -NotMatch HEAD | foreach {$_ -replace '.*/(.*)','$1'}
|
||||
Loading…
Add table
Add a link
Reference in a new issue