Repository navigation
Conversation
There was a problem hiding this comment.
This is great, but typically we've been putting this stuff in the *lfs.Configuration struct so that we only have to check the ENV once per git lfs process.
There was a problem hiding this comment.
Not really:
$ grep -Ri "os.Getenv" *
lfs/credentials.go: if exitErr.ProcessState.Success() == false && os.Getenv("GIT_TERMINAL_PROMPT") == "0" {
lfs/http.go: if sslVerify == "false" || len(os.Getenv("GIT_SSL_NO_VERIFY")) > 0 {
lfs/util.go: logPath := os.Getenv("GIT_LFS_PROGRESS")
lfs/config.go: isTracingHttp: len(os.Getenv("GIT_CURL_VERBOSE")) > 0,
There was a problem hiding this comment.
Ah you're right, I'm thinking of one of our internal projects :) I still think it's a good thing to do, especially for anything that's called multiple times. Two of those 4 matches are cached.
|
@technoweenie |
|
@bozaro I want to see how #378 (which implements this) shakes out first though. I really appreciate the feedback and PRs you've submitted. As @michael-k pointed out, I too put in several uncached |
|
Update commit for using Config.Getenv provided by #387 |
|
Close as duplicate of #404 |
No description provided.