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
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 @@ def remove_remotes!
#
# 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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment