From 61307fd850e1c52d4761d3a193e3abaedc4f55f8 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Fri, 12 Sep 2014 19:19:33 +0300 Subject: Git remote remove only available in git > 1.7.12 Signed-off-by: Dmitriy Zaporozhets --- lib/gitlab_projects.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/gitlab_projects.rb') 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 -- cgit v1.2.1