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

[PATCH 2/2] Add support for git-http-push to git-push script

From
NHNick Hengeveld <nickh@reactrix.com>
Date
Nov 2, 2005, 19:19 UTC
Message-ID
<20051102191930.GD3928@reactrix.com>
Add support for git-http-push to git-push script
Signed-off-by: Nick Hengeveld <nickh@reactrix.com>
---

This probably doesn't make sense until git-http-push has undergone some testing.

 git-push.sh |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

applies-to: e7d656bb2608ae924a78750bbd3d01bf4f6c2e9a a374b962104899cfe39b21fc2fbef64d1e1fdbd8

diff --git a/git-push.sh b/git-push.sh
index 5aa6531..edc0b83 100755
--- a/git-push.sh
+++ b/git-push.sh
@@ -46,7 +46,7 @@ esac
 shift
 
 case "$remote" in
-http://* | https://* | git://*)
+git://*)
 	die "Cannot use READ-ONLY transport to push to $remote" ;;
 rsync://*)
         die "Pushing with rsync transport is deprecated" ;;
@@ -57,4 +57,9 @@ test "$has_all" && set x "$has_all" "$@"
 test "$has_force" && set x "$has_force" "$@" && shift
 test "$has_exec" && set x "$has_exec" "$@" && shift
 
-exec git-send-pack "$@"
+case "$remote" in
+http://* | https://*)
+	exec git-http-push "$@";;
+*)
+	exec git-send-pack "$@";;
+esac
---
0.99.9.GIT
Message 1 of 1 in “Add support for git-http-push to git-push script”
  1. 2/2 Add support for git-http-push to git-push scriptNick Hengeveld, Nov 2, 2005

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.