Skip to content

Commit

Permalink
😄
Browse files Browse the repository at this point in the history
  • Loading branch information
tianxiang.wly committed Jan 11, 2016
1 parent 34a3a9d commit be4938f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const execSync = require('child_process').execSync;
const co = require('co');
const RE_BRANCH = /^On\sbranch\s(.*)\s/;
const RE_BRANCH = /On\sbranch\s(.*)\s/;

module.exports = co.wrap(function*(branch, cwd) {
cwd = cwd || process.cwd();
Expand Down
2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const os = require('os');
const execSync = require('child_process').execSync;

describe('check-branch', () => {
const currentBranch = (execSync('git status').toString().match(/^On\sbranch\s(.*)\s/) || [])[1] || 'master';
const currentBranch = (execSync('git status').toString().match(/On\sbranch\s(.*)\s/) || [])[1] || 'master';
before(() => execSync('git checkout -b testbranch', {
stdio: 'pipe'
}));
Expand Down

0 comments on commit be4938f

Please sign in to comment.