{"thread":{"id":"3697","subject":"[PATCH] Cogito: Allow https:// URLs","startedAt":"2006-03-22T11:45:08Z","lastAt":"2006-03-22T11:45:08Z","messageCount":1,"participants":["Dennis Stosberg"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"17765","messageId":"20060322114508.G66c5922@leonov.stosberg.net","threadId":"3697","inReplyTo":null,"subject":"[PATCH] Cogito: Allow https:// URLs","fromName":"Dennis Stosberg","fromEmail":"dennis@stosberg.net","sentAt":"2006-03-22T11:45:08Z","receivedAt":"2006-03-22T11:45:08Z","isPatch":true,"sender":{"key":"dennis@stosberg.net","avatar":null},"body":"\nHello,\n\nTwo trivial changes allow Cogito to pull from and push to https://\nURLs.  The list of available transports in cg-branch-add is being\nupdated as well.\n\nThanks, \nDennis\n\n[Please CC me, I'm not subscribed to this list]\n\n---\n\n cg-branch-add |    6 ++++--\n cg-fetch      |    2 +-\n cg-push       |    2 +-\n 3 files changed, 6 insertions(+), 4 deletions(-)\n\ndiff --git a/cg-branch-add b/cg-branch-add\nindex 4cb5a26..6c7b222 100755\n--- a/cg-branch-add\n+++ b/cg-branch-add\n@@ -27,10 +27,12 @@\n #\n # 3. HTTP - `http://host/path`\n #\n-# 4. SSH - `git+ssh://host/path` or `host:path` (the latter can change);\n+# 4. HTTPS - `https://host/path`\n+#\n+# 5. SSH - `git+ssh://host/path` or `host:path` (the latter can change);\n #    note that the path must be absolute in the first case.\n #\n-# 5. GIT-Daemon - `git://host/path` - this won't clone tags.\n+# 6. GIT-Daemon - `git://host/path` - this won't clone tags.\n #\n #\n # The URL can have a fragment part, which identifies a branch inside of\ndiff --git a/cg-fetch b/cg-fetch\nindex 9f41124..e8a51e8 100755\n--- a/cg-fetch\n+++ b/cg-fetch\n@@ -288,7 +288,7 @@ orig_head=\n \n packed_transport=\n \n-if echo \"$uri\" | grep -q \"^http://\"; then\n+if echo \"$uri\" | grep -q \"^https\\?://\"; then\n \tget=get_http\n \tfetch=fetch_http\n elif echo \"$uri\" | grep -q \"^git+ssh://\"; then\ndiff --git a/cg-push b/cg-push\nindex fb212db..b6b8954 100755\n--- a/cg-push\n+++ b/cg-push\n@@ -68,7 +68,7 @@ if echo \"$uri\" | grep -q '#'; then\n fi\n sprembranch=\":refs/heads/$rembranch\"\n \n-if [ \"${uri#http://}\" != \"$uri\" ]; then\n+if [ \"${uri#http://}\" != \"$uri\" -o \"${uri#https://}\" != \"$uri\" ]; then\n \t# git-http-push doesn't like $sprembranch\n \tgit-http-push \"$uri/\" \"$locbranch:$rembranch\"\n elif [ \"${uri#git+ssh://}\" != \"$uri\" ]; then\n-- \n1.2.GIT\n"}]}