mirror of
https://github.com/git/git
synced 2024-08-28 20:20:07 +00:00
Merge branch 'sb/checkout-recurse-submodules'
Code cleanup. * sb/checkout-recurse-submodules: submodule: remove a superfluous second check for the "new" variable
This commit is contained in:
commit
5000cd45d8
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue