diff options
author | HampusM <hampus@hampusmat.com> | 2021-07-27 13:18:42 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-07-27 13:18:42 +0200 |
commit | f6a5fe05c887a658c20257d2ef6bf2780f792873 (patch) | |
tree | 9ee4b42ed04b3fe7decdac10b20ec96ca764d378 /packages/server/src/git/branch.ts | |
parent | 69c58c94bd8cc0d469ae301931d4571aca84851a (diff) |
Refactored the backend a bit & added TSDoc/JSDoc comments to the diff class
Diffstat (limited to 'packages/server/src/git/branch.ts')
-rw-r--r-- | packages/server/src/git/branch.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/server/src/git/branch.ts b/packages/server/src/git/branch.ts index 7ddf672..4737279 100644 --- a/packages/server/src/git/branch.ts +++ b/packages/server/src/git/branch.ts @@ -16,7 +16,7 @@ export class Branch extends Reference { * @returns A commit summary instance */ public async latestCommit(): Promise<CommitSummary> { - const latest_commit = this._owner.nodegitRepository.getBranchCommit(this._ng_reference).catch(() => { + const latest_commit = this._owner.ng_repository.getBranchCommit(this._ng_reference).catch(() => { throw(createError(BranchError, 500, "Failed to get the latest commit")); }); @@ -35,7 +35,7 @@ export class Branch extends Reference { * @returns An instance of a branch */ public static async lookup(owner: Repository, branch: string): Promise<Branch> { - const reference = await owner.nodegitRepository.getBranch(branch).catch(err => { + const reference = await owner.ng_repository.getBranch(branch).catch(err => { if(err.errno === -3) { throw(createError(BranchError, 404, "Branch not found!")); } |