Skip to content

Commit

Permalink
put the clone into specified reposiotry
Browse files Browse the repository at this point in the history
Signed-off-by: debasishbsws <[email protected]>
  • Loading branch information
debasishbsws committed Mar 8, 2024
1 parent 591289d commit 4dd6c95
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/update/deps/cleanup.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,12 @@ func CleanupGoBumpDeps(doc *yaml.Node, updated *config.Configuration, tidy bool,
for i < len(updated.Pipeline) {
// TODO(hectorj2f): add support for fetch pipelines
if updated.Pipeline[i].Uses == "git-checkout" {
err := gitCheckout(&updated.Pipeline[i], tempDir, mutations)
destinationDir := tempDir
dest := updated.Pipeline[i].With["destination"]
if dest != "" {
destinationDir = path.Join(tempDir, dest)
}
err := gitCheckout(&updated.Pipeline[i], destinationDir, mutations)
if err != nil {
return fmt.Errorf("failed to git checkout the repository: %v", err)
}
Expand Down

0 comments on commit 4dd6c95

Please sign in to comment.