diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2019-11-21 22:04:50 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-11-22 16:11:45 +0900 |
commit | 416adc8711d16c5231693f19ca483dd3d59bef5d (patch) | |
tree | 95e680824a7d5869e6dd447d00dab11f653c04fd /t/t4034/php | |
parent | sparse-checkout: cone mode should not interact with .gitignore (diff) | |
download | tgif-416adc8711d16c5231693f19ca483dd3d59bef5d.tar.xz |
sparse-checkout: update working directory in-process for 'init'
The 'git sparse-checkout init' subcommand previously wrote directly
to the sparse-checkout file and then updated the working directory.
This may fail if there are modified files not included in the initial
pattern set. However, that left a populated sparse-checkout file.
Use the in-process working directory update to guarantee that the
init subcommand only changes the sparse-checkout file if the working
directory update succeeds.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4034/php')
0 files changed, 0 insertions, 0 deletions