Skip to content

Commit f006709

Browse files
committed
Fix git fetch compatibility with git <1.9; fixes dergachev#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.
1 parent 547e7e9 commit f006709

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/repository/git_remote.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def ensure_possibly_empty_clone_exists
9999
return "Unable to run: git init --bare #{clone_path}"
100100
end
101101

102-
unless system "git", "--git-dir", clone_path, "remote", "add", "--tags", "--mirror=fetch", "origin", clone_url
102+
unless system "git", "--git-dir", clone_path, "remote", "add", "--mirror=fetch", "origin", clone_url
103103
return "Unable to run: git --git-dir #{clone_path} remote add #{clone_url}"
104104
end
105105
end

0 commit comments

Comments
 (0)