projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sha1_to_hex: properly terminate the SHA1
[git.git]
/
init-db.c
diff --git
a/init-db.c
b/init-db.c
index
8195b68
..
ead37b5
100644
(file)
--- a/
init-db.c
+++ b/
init-db.c
@@
-237,9
+237,7
@@
int main(int argc, char **argv)
for (i = 1; i < argc; i++, argv++) {
char *arg = argv[1];
- if (arg[0] != '-')
- break;
- else if (!strncmp(arg, "--template=", 11))
+ if (!strncmp(arg, "--template=", 11))
template_dir = arg+11;
else
die(init_db_usage);