Derrick Stolee [off-list ref] writes:
On 12/20/2019 10:38 AM, Ed Maste wrote:
quoted
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.
This patch looks good to me and seems to match where the
discussion landed. Thanks for finding and fixing this!
Thanks, all. Will queue.