submodule-config: lazy-load a repository's .gitmodules file
[gitweb.git] / builtin / receive-pack.c
index cabdc55e0933adb09d459a5a0747c718fd2c7d1e..136c44def778fa64a4a79074413d08aeedcb7991 100644 (file)
@@ -919,9 +919,9 @@ static int update_shallow_ref(struct command *cmd, struct shallow_info *si)
  */
 static int head_has_history(void)
 {
-       unsigned char sha1[20];
+       struct object_id oid;
 
-       return !get_sha1("HEAD", sha1);
+       return !get_oid("HEAD", &oid);
 }
 
 static const char *push_to_deploy(unsigned char *sha1,