diff options
Diffstat (limited to 'lib/fetchGitData.js')
| -rw-r--r-- | lib/fetchGitData.js | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/fetchGitData.js b/lib/fetchGitData.js index d663716..629d650 100644 --- a/lib/fetchGitData.js +++ b/lib/fetchGitData.js @@ -75,7 +75,6 @@ var fetchGitData = function(git) { exec("git log -1 " + git.head.id + " --pretty=format:'%H'"); } catch (e) { execGit = false; - logger.warn("unable to execute git, using default/passed values instead.", e.message); } //-- Head @@ -92,16 +91,8 @@ var fetchGitData = function(git) { if (execGit) { //-- Branch - if ("" === git.branch) { - git.branch = exec("git branch").split("\n")[0].replace(/^\*\ /, "").trim(); - } + git.branch = exec("git branch").split("\n")[0].replace(/^\*\ /, "").trim(); - //-- Remotes - if (0 !== git.remotes.length) { - for (i in git.remotes) { - saveRemote(git.remotes[i].name, git.remotes[i].url, false); - } - } exec("git remote -v").split("\n").forEach(function(remote) { remote = remote.split(/\s/); saveRemote(remote[0], remote[1]); |
