summaryrefslogtreecommitdiff
path: root/t/t4013/diff.format-patch_--inline_--stdout_--subject-prefix=TESTCASE_initial..master
diff options
context:
space:
mode:
authorLibravatar Elijah Newren <newren@gmail.com>2018-11-15 23:59:50 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-11-17 18:43:51 +0900
commit1f30c904b38552dccd90135334c342e17a1ed077 (patch)
treee4d3c4c579ec2855fa259f1512c775eddc596d57 /t/t4013/diff.format-patch_--inline_--stdout_--subject-prefix=TESTCASE_initial..master
parentfast-export: use value from correct enum (diff)
downloadtgif-1f30c904b38552dccd90135334c342e17a1ed077.tar.xz
fast-export: avoid dying when filtering by paths and old tags exist
If --tag-of-filtered-object=rewrite is specified along with a set of paths to limit what is exported, then any tags pointing to old commits that do not contain any of those specified paths cause problems. Since the old tagged commit is not exported, fast-export attempts to rewrite such tags to an ancestor commit which was exported. If no such commit exists, then fast-export currently die()s. Five years after the tag rewriting logic was added to fast-export (see commit 2d8ad4691921, "fast-export: Add a --tag-of-filtered-object option for newly dangling tags", 2009-06-25), fast-import gained the ability to delete refs (see commit 4ee1b225b99f, "fast-import: add support to delete refs", 2014-04-20), so now we do have a valid option to rewrite the tag to. Delete these tags instead of dying. Signed-off-by: Elijah Newren <newren@gmail.com> Acked-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.format-patch_--inline_--stdout_--subject-prefix=TESTCASE_initial..master')
0 files changed, 0 insertions, 0 deletions