Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
bonyuta0204 committed Nov 30, 2023
1 parent 66468af commit 87c892c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34394,9 +34394,11 @@ const git = (0, simple_git_1.default)();
async function fullFetch() {
(0, promises_1.access)(path.join(".git", "shallow"))
.then(async () => {
(0, core_1.debug)("Repository is shallow, fetching all commits");
await git.fetch(["--unshallow"]);
})
.catch(async () => {
(0, core_1.debug)("Repository is complete, fetching commits");
await git.fetch([]);
});
}
Expand Down
2 changes: 2 additions & 0 deletions src/git-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ const git = simpleGit();
export async function fullFetch(): Promise<void> {
access(path.join(".git", "shallow"))
.then(async () => {
debug("Repository is shallow, fetching all commits");
await git.fetch(["--unshallow"]);
})
.catch(async () => {
debug("Repository is complete, fetching commits");
await git.fetch([]);
});
}
Expand Down

0 comments on commit 87c892c

Please sign in to comment.