windows - git checkout error: unable to create file -
while cloning git repository linux windows system, getting next error in checkout phase.
$ git clone gituser@serveraddr:/git/git_repo.git git_wa cloning 'git_wa'... gituser@serveraddr's password: remote: counting objects: 500846, done. remote: compressing objects: 100% (118676/118676), done. remote: total 500846 (delta 307739), reused 483023 (delta 291136) receiving objects: 100% (500846/500846), 907.54 mib | 9.04 mib/s, done. resolving deltas: 100% (307739/307739), done.
error: unable create file realr**************************************************************************************************************************validation.xml (no such file or directory) checking out files: 100% (441329/441329) checking out files: 100% (441329/441329), done. done.
case-2: cloned bare repo, checked-out bare repo locally => same error.
case-3: clone repo in c:\ directly, checkout successful, no error.
-> looks problem filename/filepath length limitation.
case-4: checkout same files svn repo. able checkout @ location without problem. hence no problem windows side. (yes, l have info in svn , git both, migrated svn git).
hence, problem has within msysgit, filepath length limitation. can path length in gitclient/msysgit tweaked?
edit1: all operation tried tortoisegit client v1.8.0 , git-bash: git version 1.8.0.msysgit.0. edit2: added actual command used while cloning.
i experienced similar problems when checking out project windows directory had 67- (windows) or 76- (cygwin) character base of operations path - when added path-length of checked out files, exceeded windows' path-length limit:
git checkout -f head error: unable create file <194-character filepath> (no such file or directory) fatal: cannot create directory @ '<187-character directory path>': no such file or directory
i solved problem checking out c:\git, which, @ 6 or 15 characters in length, kept maximum path-length under windows limit.
windows git filepath git-checkout
No comments:
Post a Comment