diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2015-05-25 18:39:11 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-05-25 12:19:37 -0700 |
commit | e45a4949a28ef26fb3f27dc8ad2ad676269a5ea5 (patch) | |
tree | 4e8c07baac5ffae3256851919ca92dc32502f745 /upload-pack.c | |
parent | 7dabd05634154687f99b41c917a0d119e530814e (diff) | |
download | git-e45a4949a28ef26fb3f27dc8ad2ad676269a5ea5.tar.gz |
find_symref(): convert local variable "unused" to object_id
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'upload-pack.c')
-rw-r--r-- | upload-pack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/upload-pack.c b/upload-pack.c index 96dbedc710..82680378b2 100644 --- a/upload-pack.c +++ b/upload-pack.c @@ -746,11 +746,11 @@ static int find_symref(const char *refname, const struct object_id *oid, { const char *symref_target; struct string_list_item *item; - unsigned char unused[20]; + struct object_id unused; if ((flag & REF_ISSYMREF) == 0) return 0; - symref_target = resolve_ref_unsafe(refname, 0, unused, &flag); + symref_target = resolve_ref_unsafe(refname, 0, unused.hash, &flag); if (!symref_target || (flag & REF_ISSYMREF) == 0) die("'%s' is a symref but it is not?", refname); item = string_list_append(cb_data, refname); |