Skip to content

Commit

Permalink
fix: test "not a git repository" reg
Browse files Browse the repository at this point in the history
  • Loading branch information
shaodahong committed Aug 18, 2020
1 parent f7469ef commit 8bafed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/lib/checkGitClean.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = function checkGitClean() {
logWithExit('本地 GIT 有未提交的改动文件,请提交后再试!')
}
} catch (error) {
if (!/not a git repository/.test(error.message)) {
if (!/not a git repository/i.test(error.message)) {
logWithExit(error)
}
}
Expand Down

0 comments on commit 8bafed8

Please sign in to comment.