From df341dc9b874f7e7bf99d9c1de3a84c49c4a04a6 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 25 Jun 2021 13:21:56 +0200 Subject: Cleaned up the backend --- packages/server/src/git/branch.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/server/src/git/branch.ts') diff --git a/packages/server/src/git/branch.ts b/packages/server/src/git/branch.ts index 2142724..90241a0 100644 --- a/packages/server/src/git/branch.ts +++ b/packages/server/src/git/branch.ts @@ -3,7 +3,7 @@ import { Reference } from "./reference"; import { Repository } from "./repository"; export class Branch extends Reference { - async latestCommit(): Promise { + public async latestCommit(): Promise { const latest_commit = this._owner.nodegitRepository.getBranchCommit(this._ng_reference); return { id: (await latest_commit).sha(), @@ -12,7 +12,7 @@ export class Branch extends Reference { }; } - static async lookup(owner: Repository, branch: string): Promise { + public static async lookup(owner: Repository, branch: string): Promise { const reference = await owner.nodegitRepository.getBranch(branch).catch(err => { if(err.errno === -3) { return null; -- cgit v1.2.3-18-g5258