Update dist

This commit is contained in:
Michal Dorner 2021-03-25 23:39:10 +01:00
parent e59197f91b
commit 3d4a25053b
No known key found for this signature in database
GPG key ID: 9EEE04B48DA36786
2 changed files with 46 additions and 11 deletions

View file

@ -57,7 +57,9 @@ export async function getChangesOnHead(): Promise<File[]> {
export async function getChangesSinceMergeBase(base: string, ref: string, initialFetchDepth: number): Promise<File[]> {
let baseRef: string | undefined
async function hasMergeBase(): Promise<boolean> {
return baseRef !== undefined && (await exec('git', ['merge-base', baseRef, ref], {ignoreReturnCode: true})).code === 0
return (
baseRef !== undefined && (await exec('git', ['merge-base', baseRef, ref], {ignoreReturnCode: true})).code === 0
)
}
let noMergeBase = false
@ -200,8 +202,8 @@ async function getCommitCount(): Promise<number> {
return isNaN(count) ? 0 : count
}
async function getFullRef(shortName: string) {
if(isGitSha(shortName)) {
async function getFullRef(shortName: string): Promise<string | undefined> {
if (isGitSha(shortName)) {
return shortName
}