You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Install command always replaces the filter.lfs.smudge and filter.lfs.process config values #2993
We got an issue over in GitHub Desktop (desktop/desktop#4602) from a user who unfortunately had their global .gitconfig file wiped due to (I imagine) fs-corruption following a very unfortunately timed system crash.
This user spotted that every time GitHub Desktop is launched the global .gitconfig file is written to. This surprised me but I think I've been able to track it down to Desktop running git lfs install --skip-repo on launch in order to make sure that the filter config is up to date with the version of lfs we're shipping (currently 2.4.0).
Running git lfs install --skip-repo with the GIT_TRACE=1 environment variable yields the following
Note that while it doesn't attempt to replace filter.lfs.required or filter.lfs.clean it does try to replace the filter.lfs.smudge and filter.lfs.process.
I think this (though I'm certainly not well-versed in the git-lfs code base) that this is because the default value of, filter.lfs.process (git-lfs filter-process) and filter.lfs.clean is listed as an 'upgradeable' value in
From my cursory reading of the code it's not obvious to me if there's a good reason for the default configuration value of a config key should also be listed as an upgradeable.
Hey, @niik! Thanks for opening this up, and doing some digging to figure out what was going on. I think that I fixed this bug in #2994. Can you give a build on master a shot and make sure that everything works as expected?
Activity
ttaylorr commentedon May 4, 2018
Hey, @niik! Thanks for opening this up, and doing some digging to figure out what was going on. I think that I fixed this bug in #2994. Can you give a build on
mastera shot and make sure that everything works as expected?