diff options
author | Ed Maste <emaste@FreeBSD.org> | 2019-12-20 20:41:14 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-12-20 21:47:08 +0100 |
commit | 761e3d26bbe44c51f83c4f1ad198461f57029ebd (patch) | |
tree | cf8685769b91637bae2f67139fc159519044b7bc /dir.h | |
parent | sparse-checkout: respect core.ignoreCase in cone mode (diff) | |
download | git-761e3d26bbe44c51f83c4f1ad198461f57029ebd.tar.xz git-761e3d26bbe44c51f83c4f1ad198461f57029ebd.zip |
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 'dir.h')
0 files changed, 0 insertions, 0 deletions