Skip to content

Commit

Permalink
修正一個檢測當前分支時的錯誤
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoOwO committed Aug 12, 2018
1 parent aa2f39f commit d9e408f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const git = require('simple-git/promise')(__dirname);
git
.raw(['symbolic-ref', '--short', 'HEAD'])
.then(branch => {
branch = branch.slice(0,-1) // 結果會多一個換行符
if (branch != (config.PokaPlayer.debug ? 'dev' : 'master')) {
git
.fetch(["--all"])
Expand Down

0 comments on commit d9e408f

Please sign in to comment.