Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
submodule-config: lazy-load a repository's .gitmodules file
[gitweb.git]
/
builtin
/
receive-pack.c
diff --git
a/builtin/receive-pack.c
b/builtin/receive-pack.c
index cabdc55e0933adb09d459a5a0747c718fd2c7d1e..136c44def778fa64a4a79074413d08aeedcb7991 100644
(file)
--- a/
builtin/receive-pack.c
+++ b/
builtin/receive-pack.c
@@
-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,