mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-12 06:06:05 +10:00
Always set the origin remote in satellite actions
This prevents issues with satellites containing outdated origin remotes after administrators move the git repositories directory.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
v 7.3.0
|
||||
- Always set the 'origin' remote in satellite actions
|
||||
|
||||
v 7.2.0
|
||||
- Explore page
|
||||
- Add project stars (Ciro Santilli)
|
||||
|
||||
@@ -121,6 +121,7 @@ module Gitlab
|
||||
#
|
||||
# Note: this will only update remote branches (i.e. origin/*)
|
||||
def update_from_source!
|
||||
repo.git.remote(default_options, 'set-url', :origin, project.repository.path_to_repo)
|
||||
repo.git.fetch(default_options, :origin)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user