Commit 2aba55d5 authored by Samuel Sirois's avatar Samuel Sirois

Remove untouched repositories from git.check_status to reduce noise

Fix Redmine#102624
parent 25fd4ae6
Pipeline #1486 passed with stages
in 3 minutes and 16 seconds
......@@ -26,6 +26,8 @@ def check_status():
def is_git_dirty():
repos = local('find ' + path.normpath(env.workspace) + ' -name ".git"', capture=True).splitlines()
repos = _remove_untouched_repository(repos)
nbWarnings = 0
for repo in repos:
repoLocalPath = path.normpath(path.join(repo, '..'))
......@@ -42,6 +44,13 @@ def is_git_dirty():
# - attention aux conflits, faire un pull d'abord et valider la fusion automatique
def _remove_untouched_repository(repos):
repos.remove(path.normpath(path.join(env.workspace, '.git')))
repos.remove(path.normpath(path.join(env.workspace, 'fabfile', '.git')))
return repos
def _check_repo(repoLocalPath):
nbWarnings = 0
with h.fab_cd('local', repoLocalPath):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment