In my batch script I'm trying to clone and reset a repository using a tag:
git reset --hard <tagname here>
This returns the error "fatal: Cannot do hard reset with paths."
Meanwhile, I can go into the same directory in cmd and copy in the same command and it works just fine.
It seems like with the batch file, it's interpreting the tag name argument as the name of a directory i.e. a path
I have tried using "" but this hasn't changed anything