* Push over HTTP now works with refs/heads/foo instead of foo
@ 2006-04-24 9:36 Bertrand Jacquin
0 siblings, 0 replies; only message in thread
From: Bertrand Jacquin @ 2006-04-24 9:36 UTC (permalink / raw)
To: pasky; +Cc: Git Mailing List
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-04-24 9:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-24 9:36 Push over HTTP now works with refs/heads/foo instead of foo Bertrand Jacquin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).