diff options
author | bremner <bremner@web> | 2011-12-31 22:29:40 +0000 |
---|---|---|
committer | admin <admin@branchable.com> | 2011-12-31 22:29:40 +0000 |
commit | 6744c41024951019af5bfbbf832836f7bfaa884b (patch) | |
tree | 8d8f2ab875b0521afb93d61fb1886727875cf848 /doc/tips | |
parent | 4a575426887bdbd0c186237aac0fa92a2acf6948 (diff) |
Added a comment: afaict git annex normalizes urls on the client side.
Diffstat (limited to 'doc/tips')
-rw-r--r-- | doc/tips/using_gitolite_with_git-annex/comment_8_8249772c142117f88e37975d058aa936._comment | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/doc/tips/using_gitolite_with_git-annex/comment_8_8249772c142117f88e37975d058aa936._comment b/doc/tips/using_gitolite_with_git-annex/comment_8_8249772c142117f88e37975d058aa936._comment new file mode 100644 index 000000000..0717bab1c --- /dev/null +++ b/doc/tips/using_gitolite_with_git-annex/comment_8_8249772c142117f88e37975d058aa936._comment @@ -0,0 +1,29 @@ +[[!comment format=mdwn + username="bremner" + ip="156.34.79.193" + subject="afaict git annex normalizes urls on the client side." + date="2011-12-31T22:29:38Z" + content=""" +After some debugging printing, here is my current understanding. + +- urls of the form git@host:~repo or ssh://git@host + + - git sends commands like \"git-receive-pack '~/repo' + - gitolite converts these to $REPO_BASE/~/repo which fails. ~/repo would also fail fwiw. + - git-annex sends seems /~/repo, which works + +- urls of the form git@host:/repo or ssh://git@host/repo + + - git sends \"git-receive-pack '/db/cs3383'\" + - gitolite converts this to $REPO_BASE/repo which works + - git annex sends \"git-annex-shell 'inannex' '/repo' ...\" which works, but only with the patch above. + +- urls of the form git@host:repo + + - git sends \"git-receive-pack 'repo' + - gitolite converts this to $REPO_BASE/repo, which works + - git-annex sends \"git-annex-shell 'inannex' '/~/db/cs3383'...\", which also works for git-annex-shell. + +So the weird case is the last one where git and git-annex are sending different things over the wire. +I don't know if you have other motivations for doing the url normalization on the client side, but it isn't needed for gitolite, and in some sense complicates things a little. On the other hand, now that I see what is going on, it isn't a big deal to just strip the leading /~ off in the adc. It does lead to the odd situation of some URLs working for git-annex but not git. +"""]] |