]> git.ipfire.org Git - thirdparty/git.git/commit - git-filter-branch.sh
filter-branch: fix errors caused by refs that point at non-committish
authorYuki Kokubun <orga.chem.job@gmail.com>
Sun, 25 Mar 2018 16:54:58 +0000 (16:54 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 25 Mar 2018 17:12:27 +0000 (10:12 -0700)
commitf78ab355e7d91c70faf41ddad9577cffc3b4ee60
treeb0a7bb304abd2fd4c1d6163710eea8e2676ea428
parentd32eb83c1db7d0a8bb54fe743c6d1dd674d372c5
filter-branch: fix errors caused by refs that point at non-committish

"git filter-branch -- --all" prints error messages when processing refs that
point at objects that are not committish. Such refs can be created by
"git replace" with trees or blobs. And also "git tag" with trees or blobs can
create such refs.

Filter these problematic refs out early, before they are seen by the logic to
see which refs have been modified and which have been left intact (which is
where the unwanted error messages come from), and warn that these refs are left
unwritten while doing so.

Signed-off-by: Yuki Kokubun <orga.chem.job@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-filter-branch.sh
t/t7003-filter-branch.sh