Skip to content

Commit

Permalink
feature(go-git-v5): Update go-git to v5 and improve repository handling
Browse files Browse the repository at this point in the history
Migrated from go-git v4 to v5 for improved stability and features. Enhanced the repository handling by adding detailed logging, updating submodules after checkouts, and refactoring username retrieval for Git providers.
  • Loading branch information
ankit-arora committed Nov 16, 2024
1 parent 84ce8d7 commit 286585f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jobs/commands/checkout_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func updateSubmodules(repository *git.Repository, username, repoProviderToken st
},
})
if err != nil {
return fmt.Errorf("error updating submodules: %s", err)
return fmt.Errorf("error updating submodule: %s: %s", submodule.Config().Path, err)
}

io.WriteString(logsWriter, fmt.Sprintf("Submodule %s updated successfully\n", submodule.Config().Path))
Expand Down

0 comments on commit 286585f

Please sign in to comment.