Refactor Satellite#clear and rename it to clear_and_update!
This commit is contained in:
parent
fba8ad5607
commit
0e9d4f30f4
2 changed files with 43 additions and 18 deletions
|
@ -50,10 +50,7 @@ module Gitlab
|
|||
#
|
||||
# Note: use this within #in_locked_and_timed_satellite
|
||||
def prepare_satellite!(repo)
|
||||
project.satellite.clear
|
||||
|
||||
repo.git.reset(hard: true)
|
||||
repo.git.fetch({}, :origin)
|
||||
project.satellite.clear_and_update!
|
||||
|
||||
repo.git.config({}, "user.name", user.name)
|
||||
repo.git.config({}, "user.email", user.email)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue