Make the regex pattern less greedy

This commit is contained in:
twangboy 2018-02-12 14:03:04 -07:00
parent 6d223cffa7
commit ea41215646
No known key found for this signature in database
GPG key ID: 93FF3BDEB278C9EB

View file

@ -701,7 +701,7 @@ def refresh_db(**kwargs):
path=repo_details.winrepo_source_dir,
saltenv=saltenv,
include_pat='*.sls',
exclude_pat=r'E@\/\..*\/' # Exclude all hidden directories (.git)
exclude_pat=r'E@\/\..*?\/' # Exclude all hidden directories (.git)
)
return genrepo(saltenv=saltenv, verbose=verbose, failhard=failhard)