summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-09-12 19:19:33 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-09-12 19:19:33 +0300
commit61307fd850e1c52d4761d3a193e3abaedc4f55f8 (patch)
tree6f96e52365f963b2b894e2f3ec1baa8665e9027a
parent66e53e54b464710af5d6946c261b7fcf26cc3bb0 (diff)
downloadgitlab-shell-61307fd850e1c52d4761d3a193e3abaedc4f55f8.tar.gz
Git remote remove only available in git > 1.7.12
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r--lib/gitlab_projects.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab_projects.rb b/lib/gitlab_projects.rb
index 85eb167..d6922c6 100644
--- a/lib/gitlab_projects.rb
+++ b/lib/gitlab_projects.rb
@@ -105,7 +105,7 @@ class GitlabProjects
end
def remove_origin_in_repo
- cmd = %W(git --git-dir=#{full_path} remote remove origin)
+ cmd = %W(git --git-dir=#{full_path} remote rm origin)
pid = Process.spawn(*cmd)
Process.wait(pid)
end