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

[PATCH] Add usage statement to git-push.sh

From
Cc.shoemaker@cox.net <c.shoemaker@cox.net>
Date
Oct 29, 2005, 04:16 UTC
Message-ID
<E1EVi8v-0002To-Qx@localhost>
Also clarify failure to push to read-only remote.
Signed-off-by: Chris Shoemaker <c.shoemaker at cox.net>
---
 git-push.sh |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
c312de8ed8aad08a3cfa4b8edce025f30781a1c3
diff --git a/git-push.sh b/git-push.sh
--- a/git-push.sh
+++ b/git-push.sh
@@ -18,7 +18,8 @@ do
 	--exec=*)
 		has_exec="$1" ;;
 	-*)
-		die "Unknown parameter $1" ;;
+		die "Usage: git push [--all] [--force] <repository> <refspec>"
+                ;;
         *)
 		set x "$@"
 		shift
@@ -41,7 +42,7 @@ shift
 
 case "$remote" in
 http://* | https://* | git://* | rsync://* )
-	die "Cannot push to $remote" ;;
+	die "Cannot use READ-ONLY transport to push to $remote" ;;
 esac
 
 set x "$remote" "$@"; shift
Message 1 of 1 in “Add usage statement to git-push.sh”
  1. Add usage statement to git-push.shc.shoemaker@cox.net, Oct 29, 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.