mirror of
https://github.com/all-contributors/cli.git
synced 2025-01-09 13:36:29 +00:00
fix: better output format for git command (#113)
<!-- Thanks for your interest in the project. Bugs filed and PRs submitted are appreciated! Please make sure that you are familiar with and follow the Code of Conduct for this project (found in the CODE_OF_CONDUCT.md file). Also, please make sure you're familiar with and follow the instructions in the contributing guidelines (found in the CONTRIBUTING.md file). If you're new to contributing to open source projects, you might find this free video course helpful: http://kcd.im/pull-request Please fill out the information below to expedite the review and (hopefully) merge of your pull request! --> <!-- What changes are being made? (What feature/bug is being fixed here?) --> **What**: Without the space, it looks like a little strange. <!-- Why are these changes necessary? --> **Why**: <!-- How were these changes implemented? --> **How**: <!-- Have you done all of these things? --> **Checklist**: <!-- add "N/A" to the end of each line that's irrelevant to your changes --> <!-- to check an item, place an "x" in the box like so: "- [x] Documentation" --> - [ ] Documentation - [ ] Tests - [x] Ready to be merged <!-- In your opinion, is this ready to be merged as soon as it's reviewed? --> - [ ] Added myself to contributors table <!-- this is optional, see the contributing guidelines for instructions --> <!-- feel free to add additional comments -->
This commit is contained in:
parent
0d1346d04e
commit
1f2686baa6
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ const spawnGitCommand = pify((args, cb) => {
|
|||
git.stderr.on('data', (buf) => bufs.push(buf));
|
||||
git.on('close', (code) => {
|
||||
if (code) {
|
||||
const msg = Buffer.concat(bufs).toString() || `git ${args.join('')} - exit code: ${code}`;
|
||||
const msg = Buffer.concat(bufs).toString() || `git ${args.join(' ')} - exit code: ${code}`;
|
||||
cb(new Error(msg));
|
||||
} else {
|
||||
cb(null);
|
||||
|
|
Loading…
Reference in a new issue