[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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user