From 624352aae91033a17ca7c83e3595ec970bcef1c5 Mon Sep 17 00:00:00 2001 From: Andrii Shumada Date: Fri, 6 Nov 2015 14:56:03 +0200 Subject: rm unneeded options, bump node in travis --- lib/detectLocalGit.js | 2 +- lib/getOptions.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/detectLocalGit.js b/lib/detectLocalGit.js index 302cd44..773eb70 100644 --- a/lib/detectLocalGit.js +++ b/lib/detectLocalGit.js @@ -3,7 +3,7 @@ var path = require('path'); var REGEX_BRANCH = /^ref: refs\/heads\/(\w+)$/; -module.exports = function detectLocalGit(knownCommit, knownBranch) { +module.exports = function detectLocalGit() { var dir = process.cwd(), gitDir; while (path.resolve('/') !== dir) { gitDir = path.join(dir, '.git'); diff --git a/lib/getOptions.js b/lib/getOptions.js index 42a3de1..3241abd 100644 --- a/lib/getOptions.js +++ b/lib/getOptions.js @@ -68,7 +68,7 @@ var getBaseOptions = function(cb){ } if (!git_commit || !git_branch) { - var data = require('./detectLocalGit')(git_commit, git_branch); + var data = require('./detectLocalGit')(); if (data) { git_commit = git_commit || data.git_commit; git_branch = git_branch || data.git_branch; -- cgit v1.2.3