Commit ffa116ca authored by Michał Flendrich's avatar Michał Flendrich
Browse files

manifests: refactor: PlainCloneContext() -> PlainClone()

This is because we don't seem to use the context in any meaningful way here.
Showing with 1 addition and 3 deletions
+1 -3
package manifests
import (
"context"
"io/ioutil"
"os"
"path/filepath"
......@@ -34,9 +33,8 @@ func syncRepo(url, branch, deployKeyPath, relativeRoot string) (string, string,
os.RemoveAll(srcDir)
}
lCtx := log.WithField("repo", url)
ctx := context.Background()
opt := cloneOptions(url, deployKeyPath, branch)
r, err := gogit.PlainCloneContext(ctx, srcDir, false, &opt)
r, err := gogit.PlainClone(srcDir, false, &opt)
if err != nil {
closer()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment