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:
parent
547e7e9cf0
commit
f006709f64
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user