Fix git commit selection

Signed-off-by: Paul Merlin <paul@gradle.com>
This commit is contained in:
Paul Merlin 2020-01-05 14:14:45 +01:00
parent e1189600d2
commit 9ecb02f313

View file

@ -4,7 +4,7 @@ import {Repository, Commit, Tree, TreeEntry} from 'nodegit'
export async function findWrapperJars(gitRepoPath: string): Promise<string[]> {
let repo: Repository = await Repository.open(gitRepoPath)
let commit: Commit = await repo.getMasterCommit()
let commit: Commit = await repo.getHeadCommit()
let tree: Tree = await commit.getTree()
let walker = tree.walk()