From c817213410312fd902cfb1d7e43e8e3f2dbf9872 Mon Sep 17 00:00:00 2001 From: Erik Johnson Date: Fri, 25 Jan 2019 06:59:20 -0600 Subject: [PATCH] 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. --- salt/states/git.py | 1 - 1 file changed, 1 deletion(-) diff --git a/salt/states/git.py b/salt/states/git.py index ba079ec23d..c0cc0fe417 100644 --- a/salt/states/git.py +++ b/salt/states/git.py @@ -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 {}