From 11f429f64c225a3e933458aff5b4e500f274455b Mon Sep 17 00:00:00 2001 From: Gabe Hayes Date: Tue, 30 Jul 2013 10:17:21 -0700 Subject: fixed git test --- lib/fetchGitData.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'lib/fetchGitData.js') 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]); -- cgit v1.2.3