Description
git-standup does not properly handle paths that include spaces in directory names, e.g. /path/to/my awesome stuff/.
Steps to Reproduce
- Install git-standup:
npm i -g git-standup
- Create a git repository in a path that features a space:
$ cd /mnt/external\ drive/
$ mkdir test-repo
$ cd test-repo
$ git init
Initialized empty Git repository in /mnt/external\ drive/test-repo/.git/
- Attempt to run
git standup:
$ git standup
/usr/local/bin/git-standup: line 251: cd: drive/test-repo: No such file or directory
Expected Behavior: The utility should correctly parse paths with spaces and not assume that spaces will not be used.
Actual Behavior: git-standup appears to split the path of the current working directory on space characters and use the length - 1th element of the split result instead of the entire path.
Reproduces how often: 100%
Additional Information
This issue has been reproduced on CentOS Linux and macOS 10.14 Mojave with git-standup v2.3.1.
Description
git-standup does not properly handle paths that include spaces in directory names, e.g.
/path/to/my awesome stuff/.Steps to Reproduce
npm i -g git-standupgit standup:Expected Behavior: The utility should correctly parse paths with spaces and not assume that spaces will not be used.
Actual Behavior: git-standup appears to split the path of the current working directory on space characters and use the
length - 1th element of the split result instead of the entire path.Reproduces how often: 100%
Additional Information
This issue has been reproduced on CentOS Linux and macOS 10.14 Mojave with git-standup v2.3.1.