diff --git a/dist/index.js b/dist/index.js index 2e291b6..9bd1bec 100644 --- a/dist/index.js +++ b/dist/index.js @@ -34392,7 +34392,7 @@ const git = (0, simple_git_1.default)(); * Fetches all commits from the remote repository */ async function fullFetch() { - (0, promises_1.access)(path.join(".git", "shallow")) + return (0, promises_1.access)(path.join(".git", "shallow")) .then(async () => { (0, core_1.debug)("Repository is shallow, fetching all commits"); await git.fetch(["--unshallow"]); diff --git a/src/git-util.ts b/src/git-util.ts index 7ec32e4..b50aee0 100644 --- a/src/git-util.ts +++ b/src/git-util.ts @@ -9,7 +9,7 @@ const git = simpleGit(); * Fetches all commits from the remote repository */ export async function fullFetch(): Promise { - access(path.join(".git", "shallow")) + return access(path.join(".git", "shallow")) .then(async () => { debug("Repository is shallow, fetching all commits"); await git.fetch(["--unshallow"]);