mirror of
https://github.com/gradle/wrapper-validation-action
synced 2024-11-23 17:22:01 +00:00
Fix git commit selection
Signed-off-by: Paul Merlin <paul@gradle.com>
This commit is contained in:
parent
e1189600d2
commit
9ecb02f313
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue