Try to fix git-get-branch.sh call on Windows

This commit is contained in:
Adam Honse 2025-01-17 01:13:17 -06:00
parent e2ddc03dfe
commit 51031cc1fe
2 changed files with 9 additions and 1 deletions

View file

@ -0,0 +1,2 @@
$HASH = git log --pretty=%h -1
git show-ref | select-string $HASH | select-string -NotMatch HEAD | foreach {$_ -replace '.*/(.*)','$1'}