Skip to contentSkip to conversation

git-remote: no longer silent on unknown commands.

PATCH New Quy Tonthat 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 git-remote: no longer silent on unknown commands.

---
 git-remote.perl |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
git-remote.perl +6 -1
index 059c141..fc055b6 100755
@@ -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);
+}
Signature · 1 line
1.5.0.rc1