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:
Erik Johnson 2019-01-25 06:59:20 -06:00
parent f8c3e44f0b
commit c817213410
No known key found for this signature in database
GPG Key ID: 5E5583C437808F3F

View File

@ -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 {}