Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid warnings when not running inside git repos #1475

Merged
merged 1 commit into from Mar 18, 2021
Merged

Avoid warnings when not running inside git repos #1475

merged 1 commit into from Mar 18, 2021

Conversation

ssbarnea
Copy link
Member

@ssbarnea ssbarnea commented Mar 18, 2021

Avoid confusing user with warning messages when linter is run outside git repos. This change will make the fallback to os.walk silent.

Fixes: #1410

@ssbarnea ssbarnea added the bug label Mar 18, 2021
@ssbarnea ssbarnea added this to the 5.0.5 milestone Mar 18, 2021
Avoid confusing user with warning messages when linter is run outside
git repos. This change will silently fallback to os.walk when run
outside git repos.

Fixes: #1410
@ssbarnea ssbarnea changed the title Allow warnings when not running inside git repos Avoid warnings when not running inside git repos Mar 18, 2021
@ssbarnea ssbarnea merged commit 0e7e1f2 into master Mar 18, 2021
@ssbarnea ssbarnea deleted the 0/more branch March 18, 2021 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression of #763: ansible-lint warn if not running in a directory that is a git repo
1 participant