Skip to content

Commit

Permalink
Merge f259001 into 0b1a23e
Browse files Browse the repository at this point in the history
  • Loading branch information
tmwllc committed Nov 6, 2018
2 parents 0b1a23e + f259001 commit 9d4993a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -58,7 +58,7 @@ function loadConfig () {

function getEnvIdFromBranch () {
try {
let branch = sh.exec('git name-rev HEAD --name-only').stdout
let branch = sh.exec('git rev-parse --abbrev-ref HEAD').stdout.replace(/\n/g, '')

branch = _.last(_.split(branch, '/'))

Expand Down
2 changes: 1 addition & 1 deletion test/_env.js
Expand Up @@ -4,7 +4,7 @@ const _ = require('lodash')
const sh = require('shelljs')

module.exports = function (regex) {
var env = sh.exec('git name-rev HEAD --name-only').stdout
var env = sh.exec('git rev-parse --abbrev-ref HEAD').stdout.replace(/\n/g, '')

env = _.last(_.split(env, '/'))

Expand Down

0 comments on commit 9d4993a

Please sign in to comment.