git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Push over HTTP now works with refs/heads/foo instead of foo

From
BJBertrand Jacquin <beber.mailing@gmail.com>
Date
Apr 24, 2006, 09:36 UTC
Message-ID
<4fb292fa0604240236m44bf1c0bm21f851a1f834f070@mail.gmail.com>
Hi,

git-http-push now accept : git-http-push http://doo.com/git/bar.git/ master:refs/heads/pr/my_passwd

instead of : git-http-push http://doo.com/git/bar.git/ master:pr/my_passwd

And old syntax doesn't work anymore (unable to create remote branches).
Here is a patch :

diff -Nur cogito-0.17.2/cg-push cogito-0.17.2-mine/cg-push --- cogito-0.17.2/cg-push 2006-04-08 03:02:49.000000000 +0200 +++ cogito-0.17.2-mine/cg-push 2006-04-24 11:33:34.748845600 +0200

@@ -69,8 +69,7 @@
 sprembranch=":refs/heads/$rembranch"

 if [ "${uri#http://}" != "$uri" -o "${uri#https://}" != "$uri" ]; then
-	# git-http-push doesn't like $sprembranch
-	git-http-push "$uri/" "$locbranch:$rembranch" "${tags[@]}"
+	git-http-push "$uri/" "$locbranch$sprembranch" "${tags[@]}"
 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


--
Beber
#e.fr@freenode
Message 1 of 1 in “Push over HTTP now works with refs/heads/foo instead of foo”
  1. Bertrand JacquinApr 24, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.