From: brian m. carlson Date: Wed, 02 May 2018 00:26:01 GMT Subject: [PATCH v2 33/42] builtin/receive-pack: convert one use of EMPTY_TREE_SHA1_HEX Message-ID: <20180502002610.915892-34-sandals@crustytoothpaste.net> In-Reply-To: <20180502002610.915892-1-sandals@crustytoothpaste.net> Convert one use of EMPTY_TREE_SHA1_HEX to use empty_tree_oid_hex to avoid a dependency on a given hash algorithm. Signed-off-by: brian m. carlson --- builtin/receive-pack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c index 6501d6b6cf..b6b3bc1334 100644 --- a/builtin/receive-pack.c +++ b/builtin/receive-pack.c @@ -968,7 +968,7 @@ static const char *push_to_deploy(unsigned char *sha1, return "Working directory has unstaged changes"; /* diff-index with either HEAD or an empty tree */ - diff_index[4] = head_has_history() ? "HEAD" : EMPTY_TREE_SHA1_HEX; + diff_index[4] = head_has_history() ? "HEAD" : empty_tree_oid_hex(); child_process_init(&child); child.argv = diff_index;