# [PATCH] Cogito: Handle push over http

1 messages from 2006-01-22 to 2006-01-22. Participants: Beber.
Thread: https://gitlist.dev/t/3130

## Beber, 2006-01-22 23:57

Subject: [PATCH] Cogito: Handle push over http
Message-ID: <4615f4910601221557u1dc37233ue2e3c312547a14de@mail.gmail.com>
URL: https://gitlist.dev/e/4615f4910601221557u1dc37233ue2e3c312547a14de%40mail.gmail.com

```
Hi,

Here is a patch allow cg-push to push over http.

You can pull http://guybrush.ath.cx/git/public/cogito.git/
Or use attach patch.

Beber


--- a/cg-push
+++ b/cg-push
@@ -69,7 +69,7 @@ fi
 sprembranch=":refs/heads/$rembranch"
 
 if [ "${uri#http://}" != "$uri" ]; then
-	die "pushing over HTTP not supported yet"
+	git-http-push "$uri/" $locbranch
 elif [ "${uri#git+ssh://}" != "$uri" ]; then
 	send_pack_update "$name" "$(echo "$uri" | sed 's#^git+ssh://\([^/]*\)\(/.*\)$#\1:\2#')" "$locbranch$sprembranch" "${tags[@]}"
 elif [ "${uri#rsync://}" != "$uri" ]; then

```
