Commit 4fd4a4a6 authored by Philippe Mouchel's avatar Philippe Mouchel

Merge branch 'feature/repository-check-discrimination' into '2.x'

Remove untouched repositories from git.check_status to reduce noise

Fix Redmine#102624

Untouched repositories: 

* "master repository" (the actual solution using Drupalizer)
* Drupalizer's repository

See merge request !30
parents 25fd4ae6 2aba55d5
Pipeline #1488 passed with stages
in 4 minutes and 9 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