Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Drupal
drupalizer
Commits
2aba55d5
Commit
2aba55d5
authored
Nov 14, 2016
by
Samuel Sirois
Browse files
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
git.py
View file @
2aba55d5
...
...
@@ -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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment