BitBucket support in Git Gateway backend
This commit is contained in:
committed by
Shawn Erquhart
parent
9894b3e805
commit
b6901093db
@ -14,7 +14,8 @@ export default class API {
|
||||
this.branch = config.branch || "master";
|
||||
this.repo = config.repo || "";
|
||||
this.requestFunction = config.requestFunction || unsentRequest.performRequest;
|
||||
this.repoURL = `/repositories/${ this.repo }`;
|
||||
// Allow overriding this.hasWriteAccess
|
||||
this.hasWriteAccess = config.hasWriteAccess || this.hasWriteAccess;
|
||||
this.repoURL = this.repo ? `/repositories/${ this.repo }` : "";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user