diff options
author | Ed Maste <emaste@FreeBSD.org> | 2019-12-20 19:41:14 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-12-20 12:47:08 -0800 |
commit | 761e3d26bbe44c51f83c4f1ad198461f57029ebd (patch) | |
tree | cf8685769b91637bae2f67139fc159519044b7bc /t/t6000-rev-list-misc.sh | |
parent | sparse-checkout: respect core.ignoreCase in cone mode (diff) | |
download | tgif-761e3d26bbe44c51f83c4f1ad198461f57029ebd.tar.xz |
sparse-checkout: improve OS ls compatibility
On FreeBSD, when executed by root ls enables the '-A' option:
-A Include directory entries whose names begin with a dot (`.')
except for . and ... Automatically set for the super-user unless
-I is specified.
As a result the .git directory appeared in the output when run as root.
Simulate no-dotfile ls behaviour using a shell glob.
Helped-by: Eric Wong <e@80x24.org>
Helped-by: Junio C Hamano <gitster@pobox.com>
Helped-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Ed Maste <emaste@FreeBSD.org>
Acked-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6000-rev-list-misc.sh')
0 files changed, 0 insertions, 0 deletions