From 23295c94df9bd31065513a3276b4938ebedd8843 Mon Sep 17 00:00:00 2001 From: "lee@7614f42c1a6cc84dbc813df25d2f75ed54948e17" Date: Sun, 12 Mar 2017 17:59:12 +0000 Subject: initial post --- ...g_up_public_repo_cloneable_from_a_web_site.mdwn | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 doc/forum/Trouble_setting_up_public_repo_cloneable_from_a_web_site.mdwn diff --git a/doc/forum/Trouble_setting_up_public_repo_cloneable_from_a_web_site.mdwn b/doc/forum/Trouble_setting_up_public_repo_cloneable_from_a_web_site.mdwn new file mode 100644 index 000000000..3c81f6ec9 --- /dev/null +++ b/doc/forum/Trouble_setting_up_public_repo_cloneable_from_a_web_site.mdwn @@ -0,0 +1,35 @@ +I'm trying to set up a public repository that is cloneable from my web site, +similar to what is mentioned at +https://git-annex.branchable.com/tips/setup_a_public_repository_on_a_web_site/ + +I've got a repo from my laptop that I can push to my web server, and I can list +the contents of the `.git` directory: + + $ curl https://example.com/annex/.git/ + + Index of /annex/.git/ + +

Index of /annex/.git/


../
+    annex/                 12-Mar-2017 17:42                   -
+    branches/           12-Mar-2017 17:38                   -
+    hooks/                 12-Mar-2017 17:38                   -
+    info/                   12-Mar-2017 17:38                   -
+    logs/                   12-Mar-2017 17:38                   -
+    objects/             12-Mar-2017 17:40                   -
+    refs/                   12-Mar-2017 17:38                   -
+    HEAD                     12-Mar-2017 17:39                  23
+    config                 12-Mar-2017 17:40                 269
+    description       12-Mar-2017 17:38                  73
+    index                   12-Mar-2017 17:41                1200
+    

+ + +However, when I try to clone it to simulate what I expect people to do, I get: + + $ git clone https://exmaple.com/annex/.git + Cloning into 'annex... + fatal: repository 'https://example.com/annex/.git/' not found + +I've configured with `git config core.sharedrepository world` and `git config +receive.denyCurrentBranch updateInstead`, but it doesn't seem to be working as I +can't clone the repository over https. -- cgit v1.2.3