threads / patch / 2267

patchAdd usage statement to git-push.sh

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

## tl;dr

One message between Oct 29, 2005 and Oct 29, 2005. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

c.shoemaker@cox.net· Oct 29, 2005, 04:16 UTC · lore
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
Show changes to git-push.sh +3 −2
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

← back to recent threads