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. --- CHANGELOG | 3 +++ lib/gitlab/satellite/satellite.rb | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 4702bed8b09..b35e02268ec 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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) 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