summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKimmo Brunfeldt <kimmobrunfeldt@gmail.com>2014-07-09 19:13:25 +0300
committerKimmo Brunfeldt <kimmobrunfeldt@gmail.com>2014-07-09 19:13:25 +0300
commit5b4fd88ad777f8de63a64e16aebec105c263fb85 (patch)
tree0a17ce7f94c75df605dabd8fec18e7fbce29dc45
parent2e4bdcc579bb1b7d927834ca1c96c0564fccc067 (diff)
downloadgit-hours-5b4fd88ad777f8de63a64e16aebec105c263fb85.zip
git-hours-5b4fd88ad777f8de63a64e16aebec105c263fb85.tar.gz
git-hours-5b4fd88ad777f8de63a64e16aebec105c263fb85.tar.bz2
Fix escaped characters
-rwxr-xr-xindex.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.js b/index.js
index 473fae5..0b0706e 100755
--- a/index.js
+++ b/index.js
@@ -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.