3 ms·
Yes, spaces in filenames introduce edge cases and bugs that people are not always aware of. E.g. Here's a random StackOverflow q&a about a Git pre-commit hook
by jasode 5y ago
Yes, spaces in filenames introduce edge cases and bugs that people are not always aware of.
E.g. Here's a random StackOverflow q&a about a Git pre-commit hook where the top-voted answer does not properly handle filenames with spaces : https://stackoverflow.com/questions/2412450/git-pre-commit-hook-changed-added-files/3068990#3068990 https://stackoverflow.com/questions/2412450/git-pre-commit-h...
However, the 2nd and 3rd most upvoted answers do mention "-z" option to handle spaces.:
https://stackoverflow.com/questions/2412450/git-pre-commit-hook-changed-added-files/42345379#42345379 https://stackoverflow.com/questions/2412450/git-pre-commit-h...