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:
Jacob Vosmaer
2014-08-22 14:32:04 +02:00
parent abda2dab43
commit 3dbd8d2293
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -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)
+1
View File
@@ -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