Git tags with quotes names in Windows

We have a GitHub repo with a few tags with quotes in the name. Sometimes some Windows hosts cannot get the error below. I don’t know why some Windows hosts cannot get, and others not if we decided it would be great .

fatal: cannot create 'C: / src / code / tags / some_tag_ "with_quotes" .lock': invalid argument

As a workaround, we removed the tags on GitHub, but inevitably, someone who has this tag runs git push locally and returns the tag back to GitHub. Each person will be hurt.

These tags cannot be deleted locally (on Windows), the same error is generated.

+6
source share
1 answer

Note. This answer has been torn and rewritten from its original version.

I wonder if you are having problems with the file system allowed by characters in file names. For example, according to Wikipedia , FAT does not allow double quotes ( " ). According to Wikipedia , NTFS will only accept double quotes if the file name is in the Posix namespace, but I cannot find this information anywhere else. In addition, Microsoft seems recommend avoiding double quotes in file names. Posix seems to allow A-Za-z_.- in "portable" filenames. See Wikipedia for file system limitations and file system capabilities for more.

Perhaps you can try the version of Cygwin Git. It seems that Cygwin manages to maintain quotes in file names in Windows.

+2
source

Source: https://habr.com/ru/post/950093/


All Articles