coccinelle: convert hashcpy() with null_sha1 to hashclr()
[gitweb.git] / t / helper / test-submodule-config.c
index dab8c27768160d4cfa61c41a95004eb7a8a336b6..7922ffba1de169f1b2acd2cf9d75c4449275b990 100644 (file)
@@ -49,7 +49,7 @@ int main(int argc, 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.");