Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

Commit

Permalink
Adding debug messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
henvic committed Mar 4, 2015
1 parent e30e697 commit ca4cc93
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ exports.deleteBranch = function(branch) {
var git = exec.spawnSync(git_command, ['branch', '-d', branch]);

if (git.status !== 0) {
logger.warn(git.stderr);
logger.debug(git.stderr);
}

return git.stdout;
Expand Down Expand Up @@ -122,6 +122,7 @@ exports.getCommitMessage = function(branch, number) {
git = exec.spawnSync(git_command, params);

if (git.status !== 0) {
logger.debug('Can\'t get commit message.');
return;
}

Expand All @@ -142,6 +143,7 @@ exports.getCurrentBranch = function() {
var git = exec.spawnSync(git_command, ['symbolic-ref', 'HEAD']);

if (git.status !== 0) {
logger.debug('Can\'t get current branch.');
return;
}

Expand All @@ -167,6 +169,7 @@ exports.getRemoteUrl = function(remote) {
return exports.getConfig('remote.' + remote + '.url');
}
catch(e) {
logger.debug('Can\'t get remote URL.');
return;
}
};
Expand Down

0 comments on commit ca4cc93

Please sign in to comment.