diff --git a/doc/bugs/unable_to_access_annexed_files_from_a_git_repo_website_serving_via___34__smart_HTTP__34__/comment_2_8e63433bee547e21b6f9e1d1932cccba._comment b/doc/bugs/unable_to_access_annexed_files_from_a_git_repo_website_serving_via___34__smart_HTTP__34__/comment_2_8e63433bee547e21b6f9e1d1932cccba._comment new file mode 100644 index 0000000000..ece11fa409 --- /dev/null +++ b/doc/bugs/unable_to_access_annexed_files_from_a_git_repo_website_serving_via___34__smart_HTTP__34__/comment_2_8e63433bee547e21b6f9e1d1932cccba._comment @@ -0,0 +1,24 @@ +[[!comment format=mdwn + username="yarikoptic" + avatar="http://cdn.libravatar.org/avatar/f11e9c84cb18d26a1748c33b48c924b4" + subject="comment 2" + date="2018-10-05T04:30:31Z" + content=""" +ok... it helps to RTFM so I found the recommended way to host webcgi and the git-http-backend from the same site, just adjusted to not need `/git/` prefix: + +[[!format sh \"\"\" + ScriptAliasMatch \ + \"(?x)^/(.*/(HEAD | \ + info/refs | \ + .git/objects/(info/[^/]+ | \ + [0-9a-f]{2}/[0-9a-f]{38} | \ + pack/pack-[0-9a-f]{40}\.(pack|idx)) | \ + git-(upload|receive)-pack))$\" \ + /usr/lib/git-core/git-http-backend/$1 +\"\"\"]] + +So it seems that access with explicit `/.git` works now nicely with both git and git-annex. Without `.git/` - only git works, I guess the same `config` access issue. I guess `git-http-backend`, as any git command, can determine the root directory of the repository if invoked under .git or not. + +I've installed current HEAD of git-annex (6.20180926+git93-gdc47dfe90... you don't have that commit since I am still carrying that LOCPATH patch for neurodebian) - indeed this one has user-agent reflected... probably could craft a rewrite rule for git-annex agent some time + +"""]]