Skip to content

Commit

Permalink
Fetch depth = 2 to get parent commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsnell committed Oct 19, 2022
1 parent 7bf2151 commit f36967c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/plugin/lib/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function cloneAt( repositoryUrl, ref, sha ) {
await SimpleGit( gitWorkingDirectoryPath )
.raw( 'init' )
.raw( 'remote', 'add', 'origin', repositoryUrl )
.raw( 'fetch', '--depth=1', 'origin', ref )
.raw( 'fetch', '--depth=2', 'origin', ref )
.raw( 'checkout', sha );
return gitWorkingDirectoryPath;
}
Expand Down

0 comments on commit f36967c

Please sign in to comment.