threads / patch / 6362

patchgit-remote: no longer silent on unknown commands.

Subject: [PATCH] git-remote: no longer silent on unknown commands.

## tl;dr

One message between Jan 13, 2007 and Jan 13, 2007. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Quy Tonthat· Jan 13, 2007, 11:55 UTC · lore
Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
---
 git-remote.perl |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
Show changes to git-remote.perl +6 −1
diff --git a/git-remote.perl b/git-remote.perl
index 059c141..fc055b6 100755
--- a/git-remote.perl
+++ b/git-remote.perl
@@ -274,4 +274,9 @@ elsif ($ARGV[0] eq 'add') {
 	}
 	add_remote($ARGV[1], $ARGV[2]);
 }
-
+else {
+	print STDERR "Usage: git remote\n";
+	print STDERR "       git remote add <name> <url>\n";
+	print STDERR "       git remote show <name>\n";
+	exit(1);
+}
-- 
1.5.0.rc1

← back to recent threads