]> git.ipfire.org Git - thirdparty/git.git/commit
sparse-checkout: cone mode should not interact with .gitignore
authorDerrick Stolee <dstolee@microsoft.com>
Thu, 21 Nov 2019 22:04:49 +0000 (22:04 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 22 Nov 2019 07:11:45 +0000 (16:11 +0900)
commitf75a69f88099689b510c7a7261d637bc7004a749
treed20508b2db73514b1a130a305920270a3a03e049
parentfb10ca5b54362e6f860e1e9049e03924fcf5f05b
sparse-checkout: cone mode should not interact with .gitignore

During the development of the sparse-checkout "cone mode" feature,
an incorrect placement of the initializer for "use_cone_patterns = 1"
caused warnings to show up when a .gitignore file was present with
non-cone-mode patterns. This was fixed in the original commit
introducing the cone mode, but now we should add a test to avoid
hitting this problem again in the future.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1091-sparse-checkout-builtin.sh