mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Don't try to run git.config_get_regexp from nonexistant cwd
If the repo has not yet been cloned then this will result in an error. And since we are checking the global gitconfig here, there's no need to run it from the target dir.
This commit is contained in:
parent
f8c3e44f0b
commit
c817213410
@ -691,7 +691,6 @@ def latest(name,
|
||||
use_lfs = bool(
|
||||
__salt__['git.config_get_regexp'](
|
||||
r'filter\.lfs\.',
|
||||
cwd=target,
|
||||
**{'global': True}))
|
||||
lfs_opts = {'identity': identity} if use_lfs else {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user