Skip to content

Commit 3e3b0ad

Browse files
committed
Switch to git branch --show-current
1 parent b821d89 commit 3e3b0ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/git.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export default class Git {
122122

123123
async getBaseBranch() {
124124
this.baseBranch = await execCmd(
125-
`git rev-parse --abbrev-ref HEAD`,
125+
`git branch --show-current`,
126126
this.workingDir
127127
)
128128
}
@@ -547,4 +547,4 @@ export default class Git {
547547
})
548548
this.lastCommitSha = request.data.sha
549549
}
550-
}
550+
}

0 commit comments

Comments
 (0)