I am trying to port this script to PowerShell:
In PowerShell I run git verify-pack from the root of my repository with:
git verify-pack -v .git\objects\pack\pack-*.idx
But I get the error:
fatal: Cannot open existing pack file 'C:\test\MyRepo\.git\objects\pack\*.idx'
C:\test\MyRepo\.git\objects\pack\*.pack: bad
I took a look at:
Equivalent of git verify-pack -v | sort | tail
but it does not really address the wildcard pack-*.idx
. Is that not possible in PowerShell?