diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2014-10-15 17:06:23 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-10-15 15:26:37 -0700 |
commit | 83487fd56397df8fd9b391ca5d00ac56f886e678 (patch) | |
tree | 242c9023daf533958a9ee4a1658f5baa755b77fa | |
parent | 6ac05bfd7a432fb84ff5d0a6390083433cb22e47 (diff) | |
download | git-nd/ref-reading.tar.gz |
resolve_gitlink_ref(): remove redundant testnd/ref-reading
At this point we know that refs->name is a non-empty string, so we
know we don't have to look up the reference in the main repository.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | refs.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1305,9 +1305,7 @@ int resolve_gitlink_ref(const char *path, const char *refname, unsigned char *sh ret = -1; goto out; } - path = *refs->name - ? git_path_submodule(refs->name, "%s", result.buf) - : git_path("%s", result.buf); + path = git_path_submodule(refs->name, "%s", result.buf); parseval = parse_ref(path, &result, sha1, NULL); } while (!parseval); |