summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2014-08-22 14:32:04 +0200
committerJacob Vosmaer <contact@jacobvosmaer.nl>2014-08-22 14:32:04 +0200
commit3dbd8d2293bf0ef4a211db2591382113aee48cfc (patch)
tree71ab54d6338852ffd847fa6a01042ec88911230d
parentabda2dab43cab774ced331093ec7649157a2b5a5 (diff)
downloadgitlab-ce-3dbd8d2293bf0ef4a211db2591382113aee48cfc.tar.gz
Always set the origin remote in satellite actions
This prevents issues with satellites containing outdated origin remotes after administrators move the git repositories directory.
-rw-r--r--CHANGELOG3
-rw-r--r--lib/gitlab/satellite/satellite.rb1
2 files changed, 4 insertions, 0 deletions
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