fix(backend-bitbucket): 404 for new entry (#2976)
This commit is contained in:
parent
af61245360
commit
20851fe7ea
@ -56,12 +56,10 @@ export default class API {
|
||||
};
|
||||
|
||||
branchCommitSha = async () => {
|
||||
if (this.branchSha) return this.branchSha;
|
||||
|
||||
({
|
||||
target: { hash: this.branchSha },
|
||||
} = await this.requestJSON(`${this.repoURL}/refs/branches/${this.branch}`));
|
||||
return this.branchSha;
|
||||
const {
|
||||
target: { hash: branchSha },
|
||||
} = await this.requestJSON(`${this.repoURL}/refs/branches/${this.branch}`);
|
||||
return branchSha;
|
||||
};
|
||||
|
||||
isFile = ({ type }) => type === 'commit_file';
|
||||
|
Loading…
x
Reference in New Issue
Block a user