diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2018-07-12 17:03:07 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-07-16 12:56:14 -0700 |
commit | 8c4cc326896de1a1501135c529b0596fa6327969 (patch) | |
tree | 1a46a40eedfcc18270e328259b3f3fff211a5c01 /t/t9123-git-svn-rebuild-with-rewriteroot.sh | |
parent | revision: tolerate promised targets of tags (diff) | |
download | tgif-8c4cc326896de1a1501135c529b0596fa6327969.tar.xz |
tag: don't warn if target is missing but promised
deref_tag() prints a warning if the object that a tag refers to does not
exist. However, when a partial clone has an annotated tag from its
promisor remote, but not the object that it refers to, printing a
warning on such a tag is incorrect.
This occurs, for example, when the checkout that happens after a partial
clone causes some objects to be fetched - and as part of the fetch, all
local refs are read. The test included in this patch demonstrates this
situation.
Therefore, do not print a warning in this case.
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9123-git-svn-rebuild-with-rewriteroot.sh')
0 files changed, 0 insertions, 0 deletions