sketch: add fetch-on-launch flag for git fetch on startup
Defaults to true, i.e. no changes.
But now I can turn it off so that running Sketch
doesn't pop 1password asking for ssh keys.
Co-Authored-By: sketch <hello@sketch.dev>
Change-ID: s494a69769c279ad8k
diff --git a/dockerimg/dockerimg.go b/dockerimg/dockerimg.go
index 49dafa0..ba93ed0 100644
--- a/dockerimg/dockerimg.go
+++ b/dockerimg/dockerimg.go
@@ -142,6 +142,9 @@
// DumpLLM requests dumping of raw communications with LLM services to files
DumpLLM bool
+
+ // FetchOnLaunch enables git fetch during initialization
+ FetchOnLaunch bool
}
// LaunchContainer creates a docker container for a project, installs sketch and opens a connection to it.
@@ -646,6 +649,9 @@
if config.DumpLLM {
cmdArgs = append(cmdArgs, "-dump-llm")
}
+ if !config.FetchOnLaunch {
+ cmdArgs = append(cmdArgs, "-fetch-on-launch=false")
+ }
// Add additional docker arguments if provided
if config.DockerArgs != "" {