In error I created a tag with a build number within double quotes.
Now we get the following error because windows file system is not able to identify with double quotes in the name.
2017-02-09T19:39:22.0551792Z ##[command]git -c http.extraheader="AUTHORIZATION: bearer ********" fetch --tags --prune --progress origin
2017-02-09T19:39:22.9717910Z error: cannot lock ref 'refs/tags/"<tagname>"': Unable to create ''<reponame>/.git/refs/tags/"<tagname>".lock': Invalid argument
2017-02-09T19:39:22.9717910Z
2017-02-09T19:39:22.9717910Z ! [new tag] "<tagname>" -> "<tagname>" (unable to update local ref)
2017-02-09T19:39:23.0967934Z ##[error]Git fetch failed with exit code: 1
Using Visual Studio if we clone/pull/fetch the repository, we get the following error:
Error encountered while cloning the remote repository: Invalid reference name 'refs/tags/"<tagname>"'.
We tried pruning remote/local respoistories, renaming tags. But this did not help in getting the issue fixed.
Is there any work around to resolve this kind of issue?
In error I created a tag with a build number within double quotes.
Now we notice the following error because windows file system is not able to identify with double quotes in the name.
2017-02-09T19:39:22.0551792Z ##[command]git -c http.extraheader="AUTHORIZATION: bearer ********" fetch --tags --prune --progress origin
2017-02-09T19:39:22.9717910Z error: cannot lock ref 'refs/tags/"<name>"': Unable to create '.git/refs/tags/"20170208.4".lock': Invalid argument
2017-02-09T19:39:22.9717910Z From
2017-02-09T19:39:22.9717910Z ! [new tag] "<name>" -> "<name>" (unable to update local ref)
2017-02-09T19:39:23.0967934Z ##[error]Git fetch failed with exit code: 1
Using Visual Studio if we clone/pull/fetch the repository, we get the following error:
Error encountered while cloning the remote repository: Invalid reference name 'refs/tags/"<name>"'.
We tried pruning remote/local repositories, renaming tags. But this did not help in getting the issue fixed.
Is there any work around to resolve this kind of issue?
Thanks
Uma