summaryrefslogtreecommitdiff
path: root/t/helper/test-submodule-config.c
diff options
context:
space:
mode:
Diffstat (limited to 't/helper/test-submodule-config.c')
-rw-r--r--t/helper/test-submodule-config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/helper/test-submodule-config.c b/t/helper/test-submodule-config.c
index 2a50217..2f144d5 100644
--- a/t/helper/test-submodule-config.c
+++ b/t/helper/test-submodule-config.c
@@ -49,7 +49,7 @@ int cmd_main(int argc, const char **argv)
path_or_name = arg[1];
if (commit[0] == '\0')
- hashcpy(commit_sha1, null_sha1);
+ hashclr(commit_sha1);
else if (get_sha1(commit, commit_sha1) < 0)
die_usage(argc, argv, "Commit not found.");