From abbddfd05fafd90b24badc43f050eb9a19675d48 Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Thu, 14 Sep 2017 09:33:31 -0700 Subject: [PATCH] added better error logging (trying to figure out why fetch into a new branch isnt working occassionally. --- pkg/utils/git.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/utils/git.go b/pkg/utils/git.go index a04e321..c2b436b 100644 --- a/pkg/utils/git.go +++ b/pkg/utils/git.go @@ -52,7 +52,7 @@ func GitFetch(repoPath string, remoteRef string, localBranchName string) error { ferr := remote.Fetch([]string{fmt.Sprintf("%s:%s", remoteRef, localBranchName)}, new(git2go.FetchOptions), "") if ferr != nil { - log.Print("Failed to fetch remote ref into new local branch " + localBranchName) + log.Print("Failed to fetch remote ref into new local branch " + fmt.Sprintf("%s:%s", remoteRef, localBranchName)) return ferr }