[oc-147] - Add context to all git methods (#901)

* Add context to all git methods.

* remove logrus.

* Add ctx.

* Address comments.

* Add error to clone failing.

* Return error.
This commit is contained in:
ahrav
2022-11-03 16:36:52 -07:00
committed by GitHub
parent 3a143f095b
commit dd141fb55f
9 changed files with 96 additions and 88 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ func main() {
defer sem.Release(1)
defer wgChunkers.Done()
log.Infof("cloning %s", r)
path, repo, err := git.CloneRepoUsingUnauthenticated(r)
path, repo, err := git.CloneRepoUsingUnauthenticated(ctx, r)
if err != nil {
log.Fatal(err)
}