From 286585f055d11c39e9e542689a6ae0b4429e69eb Mon Sep 17 00:00:00 2001 From: Ankit Arora Date: Sat, 16 Nov 2024 19:00:05 +0530 Subject: [PATCH] feature(go-git-v5): Update go-git to v5 and improve repository handling 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. --- jobs/commands/checkout_repository.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jobs/commands/checkout_repository.go b/jobs/commands/checkout_repository.go index 0ac7898..ad79c7c 100644 --- a/jobs/commands/checkout_repository.go +++ b/jobs/commands/checkout_repository.go @@ -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))