]> git.ipfire.org Git - thirdparty/git.git/blobdiff - reset.c
hash: provide per-algorithm null OIDs
[thirdparty/git.git] / reset.c
diff --git a/reset.c b/reset.c
index 2f4fbd07c54b59f71c92391a601d1ec9fe05ce7d..4bea758053bbea3cb68aba7662d3ad92ac81ca43 100644 (file)
--- a/reset.c
+++ b/reset.c
@@ -128,7 +128,7 @@ reset_head_refs:
        }
        if (run_hook)
                run_hook_le(NULL, "post-checkout",
-                           oid_to_hex(orig ? orig : &null_oid),
+                           oid_to_hex(orig ? orig : null_oid()),
                            oid_to_hex(oid), "1", NULL);
 
 leave_reset_head: