From f006709f643fdd562607c4885b19eaae91de6bd8 Mon Sep 17 00:00:00 2001 From: Alex Dergachev Date: Fri, 12 Dec 2014 22:02:50 +0000 Subject: [PATCH] Fix git fetch compatibility with git <1.9; fixes #9 Git 1.8 and 1.7 will treat `git fetch --all --tags` as `git fetch --tags`, instead of `git fetch --all`. See github issue. --- app/models/repository/git_remote.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/repository/git_remote.rb b/app/models/repository/git_remote.rb index ae18f42..d4a54d6 100644 --- a/app/models/repository/git_remote.rb +++ b/app/models/repository/git_remote.rb @@ -99,7 +99,7 @@ class Repository::GitRemote < Repository::Git return "Unable to run: git init --bare #{clone_path}" end - unless system "git", "--git-dir", clone_path, "remote", "add", "--tags", "--mirror=fetch", "origin", clone_url + unless system "git", "--git-dir", clone_path, "remote", "add", "--mirror=fetch", "origin", clone_url return "Unable to run: git --git-dir #{clone_path} remote add #{clone_url}" end end