From 3dbd8d2293bf0ef4a211db2591382113aee48cfc Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Fri, 22 Aug 2014 14:32:04 +0200 Subject: Always set the origin remote in satellite actions This prevents issues with satellites containing outdated origin remotes after administrators move the git repositories directory. --- lib/gitlab/satellite/satellite.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/gitlab/satellite/satellite.rb b/lib/gitlab/satellite/satellite.rb index 7c058b58c4c..f34d661c9fc 100644 --- a/lib/gitlab/satellite/satellite.rb +++ b/lib/gitlab/satellite/satellite.rb @@ -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 -- cgit v1.2.1