Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'sb/checkout-recurse-submodules'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 24 Apr 2017 05:07:54 +0000
(22:07 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 24 Apr 2017 05:07:54 +0000
(22:07 -0700)
Code cleanup.
* sb/checkout-recurse-submodules:
submodule: remove a superfluous second check for the "new" variable
submodule.c
patch
|
blob
|
history
raw
(from parent 1:
d2617eb
)
diff --git
a/submodule.c
b/submodule.c
index 5615d7392efaf18816ba2a6910a224df581be72e..d3299e29c0855b8503f444f659e2b24bba8ecb1f 100644
(file)
--- a/
submodule.c
+++ b/
submodule.c
@@
-1474,8
+1474,7
@@
int submodule_move_head(const char *path,
cp1.no_stdin = 1;
cp1.dir = path;
- argv_array_pushl(&cp1.args, "update-ref", "HEAD",
- new ? new : EMPTY_TREE_SHA1_HEX, NULL);
+ argv_array_pushl(&cp1.args, "update-ref", "HEAD", new, NULL);
if (run_command(&cp1)) {
ret = -1;