aboutsummaryrefslogtreecommitdiff
path: root/packages/server/src/git/commit.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/server/src/git/commit.ts')
-rw-r--r--packages/server/src/git/commit.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/server/src/git/commit.ts b/packages/server/src/git/commit.ts
index e0b3bbb..cf1ac5a 100644
--- a/packages/server/src/git/commit.ts
+++ b/packages/server/src/git/commit.ts
@@ -104,12 +104,12 @@ export class Commit {
}
/**
- * Returns the master commit of a repository
+ * Returns the most recent commit of the repository's branch
*
* @param owner - A repository
* @returns An instance of a commit
*/
- public static async masterCommit(owner: Repository): Promise<Commit> {
- return new Commit(owner, await owner.ng_repository.getMasterCommit());
+ public static async branchCommit(owner: Repository): Promise<Commit> {
+ return new Commit(owner, await owner.ng_repository.getBranchCommit(owner.branch_name));
}
} \ No newline at end of file