From 1f2686baa634e81a133bd3eab0ebf2634b9b0d8e Mon Sep 17 00:00:00 2001 From: Xianming Zhong Date: Thu, 18 Oct 2018 23:58:29 +0800 Subject: [PATCH] fix: better output format for git command (#113) **What**: Without the space, it looks like a little strange. **Why**: **How**: **Checklist**: - [ ] Documentation - [ ] Tests - [x] Ready to be merged - [ ] Added myself to contributors table --- src/util/git.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/git.js b/src/util/git.js index 6d6f730..fdde39d 100644 --- a/src/util/git.js +++ b/src/util/git.js @@ -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);