OSDN Git Service
(root)
/
git-core
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
merge: save merge state earlier
[git-core/git.git]
/
builtin
/
credential.c
diff --git
a/builtin/credential.c
b/builtin/credential.c
index
0412fa0
..
879acfb
100644
(file)
--- a/
builtin/credential.c
+++ b/
builtin/credential.c
@@
-10,9
+10,9
@@
int cmd_credential(int argc, const char **argv, const char *prefix)
const char *op;
struct credential c = CREDENTIAL_INIT;
- op = argv[1];
- if (!op)
+ if (argc != 2 || !strcmp(argv[1], "-h"))
usage(usage_msg);
+ op = argv[1];
if (credential_read(&c, stdin) < 0)
die("unable to read credential from stdin");