Disable clean
successor of !196 (closed)
What does this MR do?
add's support for .gitlab-ci.yml variable GIT_DISABLE_CLEAN_ON_FETCH
.
If GIT_DISABLE_CLEAN_ON_FETCH
is "false" or inexistent => normal operation => git clean -ffdx
If GIT_DISABLE_CLEAN_ON_FETCH
is "true" then git clean -ffdx
is skipped if GIT_STRATEGY
is fetch
.
If GIT_STRATEGY
is clone
a rm -rf
is done anyway, therefore it doesn't make sense to skip git clean -ffdx
.
For further detail please read !196 (closed) and !1007 (closed)
also PR !772 (closed) goes into this direction
Why was this MR needed?
Are there points in the code the reviewer needs to double check?
If GIT_STRATEGY
is none
with this PR git clean -ffdx
is skipped as well.
What does others mean to this behaviour?
Does this MR meet the acceptance criteria?
-
Documentation created/updated -
Added tests for this feature/bug -
In case of conflicts with master
- branch was rebased
What are the relevant issue numbers?
Edited by Stefan Weber