{"thread":{"id":"2267","subject":"[PATCH] Add usage statement to git-push.sh","startedAt":"2005-10-29T04:16:33Z","lastAt":"2005-10-29T04:16:33Z","messageCount":1,"participants":["c.shoemaker@cox.net"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"10781","messageId":"E1EVi8v-0002To-Qx@localhost","threadId":"2267","inReplyTo":null,"subject":"[PATCH] Add usage statement to git-push.sh","fromName":"","fromEmail":"c.shoemaker@cox.net","sentAt":"2005-10-29T04:16:33Z","receivedAt":"2005-10-29T04:16:33Z","isPatch":true,"sender":{"key":"c.shoemaker@cox.net","avatar":null},"body":"Also clarify failure to push to read-only remote.\n\nSigned-off-by: Chris Shoemaker <c.shoemaker at cox.net>\n\n---\n\n git-push.sh |    5 +++--\n 1 files changed, 3 insertions(+), 2 deletions(-)\n\nc312de8ed8aad08a3cfa4b8edce025f30781a1c3\ndiff --git a/git-push.sh b/git-push.sh\n--- a/git-push.sh\n+++ b/git-push.sh\n@@ -18,7 +18,8 @@ do\n \t--exec=*)\n \t\thas_exec=\"$1\" ;;\n \t-*)\n-\t\tdie \"Unknown parameter $1\" ;;\n+\t\tdie \"Usage: git push [--all] [--force] <repository> <refspec>\"\n+                ;;\n         *)\n \t\tset x \"$@\"\n \t\tshift\n@@ -41,7 +42,7 @@ shift\n \n case \"$remote\" in\n http://* | https://* | git://* | rsync://* )\n-\tdie \"Cannot push to $remote\" ;;\n+\tdie \"Cannot use READ-ONLY transport to push to $remote\" ;;\n esac\n \n set x \"$remote\" \"$@\"; shift\n"}]}