Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
submodule: remove a superfluous second check for the "new" variable
author
Sebastian Schuberth
<sschuberth@gmail.com>
Mon, 17 Apr 2017 07:59:47 +0000
(07:59 +0000)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 18 Apr 2017 00:41:13 +0000
(17:41 -0700)
Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
submodule.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
2580491
)
diff --git
a/submodule.c
b/submodule.c
index 6e8825b451a0ff55fdf5be96d60277ee6b10dd55..eed2148a71e22f0a810d9d33d9cbe5d6282bb43c 100644
(file)
--- a/
submodule.c
+++ b/
submodule.c
@@
-1362,8
+1362,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;