forum/unable to clone annex repo in windowsgit-annexhttp://git-annex.branchable.com/forum/unable_to_clone_annex_repo_in_windows/git-annexikiwiki2016-05-14T13:11:35Zcomment 1http://git-annex.branchable.com/forum/unable_to_clone_annex_repo_in_windows/comment_1_588af0e0b655966c2d344f3f4b4d2e5f/joey2016-05-03T17:02:36Z2016-05-03T16:55:42Z
<p>That sounds like this bug:
<a href="http://git-annex.branchable.com/bugs/__34__git-annex__58___direct__58___1_failed__34___on_Windows/">http://git-annex.branchable.com/bugs/__34__git-annex__58___direct__58___1_failed__34___on_Windows/</a></p>
<p>Windows has some path length issues that come up especially when using
git-annex in a deeply nested directory tree. Try cloning the repository to
somewhere like c:\ and see if that works around the problem.</p>
<p>Although, the path it's complaining about is relative and only 113
characters long, which should not be long enough to trigger that problem.
So, this could be some other problem. I tried cloning a git-annex repo
and git annex init did not fail like this, so any information you can
provide to help me reproduce the problem would be good.</p>
comment 2http://git-annex.branchable.com/forum/unable_to_clone_annex_repo_in_windows/comment_2_e4fcc8329b2deb058b7368ce1c226a3e/drunken_sapo2016-05-13T18:12:24Z2016-05-13T18:12:24Z
<p>Hey Joey,
Thanks for the answer, I'm trying to reproduce it on a test repo, but I'm having problems with my ssh-key. As soon as I fix it I'll be back with the results.
Thanks for your time and effort.
Best,
Juan</p>
The problem was path lengthhttp://git-annex.branchable.com/forum/unable_to_clone_annex_repo_in_windows/comment_3_20aa8de2513fdb6b19a4b24f20983f0a/drunken_sapo2016-05-14T13:11:35Z2016-05-14T13:11:35Z
<p>After fixing my ssh key problem I was able to test it appropiately.
The path to the .git directory of my repo is 41 characters long (/d/juan/develop/git/xxxxxx_xxxxx_xxxxxxxx), if we add the offending file name: .git\annex\objects\fca\de3\SHA256E-s1312136--a79e30c5121f7843f023abbd36b211a245385b952926760d55a07baf8da1b24d.png\
which is 114 characters long, it adds up to 155 characters.
Moving the repo to /d/xxxxxx_xxxxx_xxxxxxxx solved the problem.
However, I need it to be on that path, because some other projects use this on a relative path.
Is there any way to circumvent this issue?</p>