diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-03-03 15:16:52 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-03-03 15:16:52 +0900 |
commit | f80fcd36751c85b11722f8c7cfd537c28956400e (patch) | |
tree | e37c20841191c07d5c6c62edb9d174c38dd6bb82 /builtin/show-ref.c | |
parent | a9f2d3f200d9d8b6e803c0818b1163226bbc3994 (diff) | |
download | git-f80fcd36751c85b11722f8c7cfd537c28956400e.tar.gz git-f80fcd36751c85b11722f8c7cfd537c28956400e.tar.bz2 git-f80fcd36751c85b11722f8c7cfd537c28956400e.zip |
Imported Upstream version 2.21.0upstream/2.21.0
Diffstat (limited to 'builtin/show-ref.c')
-rw-r--r-- | builtin/show-ref.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/show-ref.c b/builtin/show-ref.c index ed888ffa..6a706c02 100644 --- a/builtin/show-ref.c +++ b/builtin/show-ref.c @@ -23,7 +23,7 @@ static void show_one(const char *refname, const struct object_id *oid) const char *hex; struct object_id peeled; - if (!has_sha1_file(oid->hash)) + if (!has_object_file(oid)) die("git show-ref: bad ref %s (%s)", refname, oid_to_hex(oid)); |