Skip to content
Snippets Groups Projects
Commit 3dbd8d22 authored by Jacob Vosmaer's avatar Jacob Vosmaer
Browse files

Always set the origin remote in satellite actions

This prevents issues with satellites containing outdated origin remotes
after administrators move the git repositories directory.
parent abda2dab
No related branches found
No related tags found
No related merge requests found
v 7.3.0
- Always set the 'origin' remote in satellite actions
v 7.2.0
- Explore page
- Add project stars (Ciro Santilli)
Loading
Loading
Loading
Loading
@@ -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
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment