summaryrefslogtreecommitdiff
path: root/builtin/receive-pack.c
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2018-05-02 00:26:01 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-02 04:59:52 (GMT)
commitc00866a2cc94dd0db3306963fad38b5711e542a2 (patch)
tree285b66db3ef3b3d68e4a8857ec8da66d27c034f4 /builtin/receive-pack.c
parentf2e51195dc23b7b4e1a90c49e1b8bf60f6ab868b (diff)
downloadgit-c00866a2cc94dd0db3306963fad38b5711e542a2.zip
git-c00866a2cc94dd0db3306963fad38b5711e542a2.tar.gz
git-c00866a2cc94dd0db3306963fad38b5711e542a2.tar.bz2
builtin/receive-pack: convert one use of EMPTY_TREE_SHA1_HEX
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 <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/receive-pack.c')
-rw-r--r--builtin/receive-pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c
index 5f35596..dca523f 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;