共用方式為


Path length limit for Git

Just found out that Git will be corrupted if the repo exist in a path that is longer than 302 characters.

For example:

This works

The path is c:\ccnetworkdir\kudu\kudu.FunctionalTests\bin\debug\tests\testrepositories\CloneFromEmptyRepoAndPushShouldDeploy\CloneFromEmptyRepoAndPushShouldDeploy1234

If I make the path 1 character longer, git will be corrupted:

You can notice that the branch name has become "((ref: re...))" instead of (master).