* [PATCH] Add usage statement to git-push.sh
@ 2005-10-29 4:16 c.shoemaker
0 siblings, 0 replies; only message in thread
From: c.shoemaker @ 2005-10-29 4:16 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-10-29 4:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-29 4:16 [PATCH] Add usage statement to git-push.sh c.shoemaker
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).