submodule: remove a superfluous second check for the "new" variable
Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
25804914fa
commit
731eb176a3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user