diff options
author | Kimmo Brunfeldt <kimmobrunfeldt@gmail.com> | 2014-07-09 19:13:25 +0300 |
---|---|---|
committer | Kimmo Brunfeldt <kimmobrunfeldt@gmail.com> | 2014-07-09 19:13:25 +0300 |
commit | 5b4fd88ad777f8de63a64e16aebec105c263fb85 (patch) | |
tree | 0a17ce7f94c75df605dabd8fec18e7fbce29dc45 | |
parent | 2e4bdcc579bb1b7d927834ca1c96c0564fccc067 (diff) | |
download | git-hours-5b4fd88ad777f8de63a64e16aebec105c263fb85.zip git-hours-5b4fd88ad777f8de63a64e16aebec105c263fb85.tar.gz git-hours-5b4fd88ad777f8de63a64e16aebec105c263fb85.tar.bz2 |
Fix escaped characters
-rwxr-xr-x | index.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -95,7 +95,7 @@ function commits(gitPath) { } function getBranchNames(gitPath) { - var cmd = "git branch --no-color | awk -F ' +' '! /\(no branch\)/ {print $2}'"; + var cmd = "git branch --no-color | awk -F ' +' '! /\\(no branch\\)/ {print $2}'"; return new Promise(function(resolve, reject) { exec(cmd, {cwd: gitPath}, function(err, stdout, stderr) { if (err) { @@ -106,7 +106,7 @@ function getBranchNames(gitPath) { .split('\n') .filter(function(e) { return e; }) // Remove empty .map(function(str) { return str.trim(); }) // Trim whitespace - ) + ); }); }); } @@ -162,7 +162,7 @@ function getBranchCommits(branch) { }); history.on("error", function(err) { - reject(err) + reject(err); }); // Start emitting events. |