Skip to content

Silent git clean

Nowadays, we when gitlab-runner fetch repo if applies git clean to remove useless trash from directory, but it uses it so verbosely, that these info use bigger part of all build log. For example, for Python project, it writes:

Fetching changes...
Removing .coverage
Removing app/__init__.pyc
Removing app/app_tests/__init__.pyc
Removing app/app_tests/apps.pyc
Removing app/app_tests/models.pyc
...
...
<more than 870 such lines>
HEAD is now at 0fab7f9 Sample commit

What can we do with it? This is useless info, I think.