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.
This commit is contained in:
Alex Dergachev 2014-12-12 22:02:50 +00:00
parent 547e7e9cf0
commit f006709f64

View File

@ -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