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>
Sebastian Schuberth committed
Apr 17, 2017 at 07:59 UTC
731eb176a30da4a7f268482be0067f159791dd4f
1 file changed
+1
-2
submodule.c
+1
-2
@@ -1362,8 +1362,7 @@ int submodule_move_head(const char *path,
1362
cp1.no_stdin = 1;
1363
cp1.dir = path;
1364
1365
- argv_array_pushl(&cp1.args, "update-ref", "HEAD",
1366
- new ? new : EMPTY_TREE_SHA1_HEX, NULL);
1365
+ argv_array_pushl(&cp1.args, "update-ref", "HEAD", new, NULL);
1366
1367
if (run_command(&cp1)) {
1368
ret = -1;