Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

Summary

So far, we think the issue is a combination of Windows not having paths longer than 260 characters enabled by default, but is possible to fix on Windows 10. On Windows 10, after doing the registry fix (and rebooting?), you must enable core.longpaths in Git for Windows and possibly other Git clients you may be using.

Errors

Git for Windows
Error:The Git process exited with the code -1,073,741,819 during executing git "C:\Program Files\Git\bin\git.exe" -c core.quotepath=false -c log.showSignature=false checkout HEAD -- ihmc-common-walking-control-modules/src/main/java/us/ihmc/commonWalkingControlModules/instantaneousCapturePoint/icpOptimization/recursiveController/multipliers/stateMatrices/transfer/TransferInitialICPVelocityMatrix.java ihmc-common-walking-control-modules/src/test/java/us/ihmc/commonWalkingControlModules/instantaneousCapturePoint/icpOptimization/recursiveController/multipliers/stateMatrices/transfer/TransferInitialICPVelocityMatrixTest.java
ihmc-common-walking-control-modules/src/main/java/us/ihmc/commonWalkingControlModules/instantaneousCapturePoint/icpOptimization/recursiveController/multipliers/stateMatrices/transfer/TransferInitialICPVelocityMatrix.java: Filename too long
ihmc-common-walking-control-modules/src/test/java/us/ihmc/commonWalkingControlModules/instantaneousCapturePoint/icpOptimization/recursiveController/multipliers/stateMatrices/transfer/TransferInitialICPVelocityMatrixTest.java: Filename too long

Solution

Step 1: Run Registry Modifier

Download and run this script to apply the fix –>  Remove 260 Character Path Limit.reg

Reverting

If you need to go back for some reason, run this file:

Restore 260 Character Path Limit (Default).reg


*  Solution source: https://www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/

Step 2: Set Git's core.longpaths = false

csa




In a terminal launched with Administrator mode.

Solution from: https://stackoverflow.com/questions/22575662/filename-too-long-in-git-for-windows

If USING CMDER, the config file is here instead: \path\to\cmder\vendor\git-for-windows\mingw32\etc

[core]
	longpaths = true

More Info

https://github.com/msysgit/msysgit/wiki/Git-cannot-create-a-file-or-directory-with-a-long-path


  • No labels