From: Sebastian Schuberth Date: Mon, 17 Apr 2017 07:59:47 +0000 (+0000) Subject: submodule: remove a superfluous second check for the "new" variable X-Git-Tag: v2.13.0-rc1~23^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/731eb176a30da4a7f268482be0067f159791dd4f submodule: remove a superfluous second check for the "new" variable Signed-off-by: Sebastian Schuberth Signed-off-by: Junio C Hamano --- diff --git a/submodule.c b/submodule.c index 6e8825b451..eed2148a71 100644 --- 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;