]> git.ipfire.org Git - thirdparty/git.git/commit - t/t6018-rev-list-glob.sh
refs: show --exclude failure with --branches/tags/remotes=glob
authorRafael Ascensão <rafa.almas@gmail.com>
Mon, 12 Nov 2018 13:25:43 +0000 (13:25 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 13 Nov 2018 05:41:20 +0000 (14:41 +0900)
commit9d55dca262e8657b87dbd4c5b3494e1ecb7a0dbd
tree5ce41e195902d3bc3a397077f279054d8fae6102
parentcae598d9980661a978e2df4fb338518f7bf09572
refs: show --exclude failure with --branches/tags/remotes=glob

The documentation of `--exclude=` option from rev-list and rev-parse
explicitly states that exclude patterns *should not* start with 'refs/'
when used with `--branches`, `--tags` or `--remotes`.

However, following this advice results in refereces not being excluded
if the next `--branches`, `--tags`, `--remotes` use the optional
inclusive glob.

Demonstrate this failure.

Signed-off-by: Rafael Ascensão <rafa.almas@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6018-rev-list-glob.sh