Git status shortcuts broken edge case: filename with spaces
LeZuse opened this issue · comments
To reproduce simply create a file with spaces in its name. Git will show this:
$ git status
# On branch: master | [*] => $e
#
➤ Untracked files
#
# untracked: [1] "my todo.txt"
#
$e1
now contains invalid filename:
$ echo $e1
/Users/zuse/Projects/pb-frontend/"my todo.txt"
$ cat $e1
cat: /Users/zuse/Projects/pb-frontend/"my: No such file or directory
cat: todo.txt": No such file or directory
$ cat "$e1"
cat: /Users/zuse/Projects/pb-frontend/"my todo.txt": No such file or directory
$ git --version
git version 2.10.2
$ cd ~/.scm_breeze/
$ git show --oneline
8a326c2 Merge pull request #262 from ghthor/refactor_of_git_status
Related to #267
I fixing this by reverting for now. We need better test coverage to handle a major change like the refactorization that was merged in #262
Yep, It's still my lack of ruby knowledge that is holding me back from hacking this back out over a weekend.