Clean working directory in satellite

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-05-05 14:21:00 +03:00
parent f09a1ef81d
commit cac916d974
No known key found for this signature in database
GPG Key ID: 627C5F589F467F17
1 changed files with 1 additions and 0 deletions

View File

@ -84,6 +84,7 @@ module Gitlab
# Clear the working directory
def clear_working_dir!
repo.git.reset(hard: true)
repo.git.clean(f: true, d: true, x: true)
end
# Deletes all branches except the parking branch