Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
object: convert parse_object* to take struct object_id
[gitweb.git]
/
refs
/
files-backend.c
diff --git
a/refs/files-backend.c
b/refs/files-backend.c
index 2c360a4107d343cb9d9d9ad3bfdfb9c05abb2e62..2cccdf71ae81ecd4ec0c26d35224606713979b84 100644
(file)
--- a/
refs/files-backend.c
+++ b/
refs/files-backend.c
@@
-2057,7
+2057,7
@@
static int write_ref_to_lockfile(struct ref_lock *lock,
struct object *o;
int fd;
- o = parse_object(oid
->hash
);
+ o = parse_object(oid);
if (!o) {
strbuf_addf(err,
"trying to write ref '%s' with nonexistent object %s",