You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The arguments to git are quoted in single quotes to allow file names with spaces, but this proves a problem, since files with ' in their names are now producing an error (for the imaginary file This doesn't work.txt):
Error: Could not run 'git --git-dir='/Users/redacted/workspace/redacted/.git' --work-tree='/Users/redacted/workspace/redacted' show master:'redacted/redacted/redacted/This doesn't work.txt' | LC_ALL=C file --mime-type -' => sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `git --git-dir='/Users/redacted/workspace/redacted/.git' --work-tree='/Users/redacted/workspace/redacted' show master:'redacted/redacted/redacted/This doesn't work.txt' | LC_ALL=C file --mime-type -'.
Try --help for help.
The text was updated successfully, but these errors were encountered:
Leandros
changed the title
Error if the file name includes a '
Error if the file name includes a single quote
Jan 11, 2018
The arguments to
git
are quoted in single quotes to allow file names with spaces, but this proves a problem, since files with'
in their names are now producing an error (for the imaginary fileThis doesn't work.txt
):The text was updated successfully, but these errors were encountered: