Skip to content

Commit 8516466

Browse files
committed
Fix error message and clarify git version req; fixes dergachev#15
1 parent 08b64d8 commit 8516466

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Then enable the new GitRemote SCM type in [http://redmine-root/settings?tab=repo
1717
![](https://dl.dropbox.com/u/29440342/screenshots/AYKNZDTB-2014.11.27-15-59-06.png)
1818

1919
The plugin shells out to the following binaries, so make sure they're available:
20-
* git
20+
* git 1.7.5+ - a version recent enough to support `get remote add --mirror=fetch origin URL`
2121
* ssh-keyscan
2222
* ssh-keygen
2323

app/models/repository/git_remote.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def ensure_possibly_empty_clone_exists
110110
end
111111

112112
unless system "git", "--git-dir", clone_path, "remote", "add", "--mirror=fetch", "origin", clone_url
113-
return "Unable to run: git --git-dir #{clone_path} remote add #{clone_url}"
113+
return "Unable to run: git --git-dir #{clone_path} remote add --mirror=fetch origin #{clone_url}"
114114
end
115115
end
116116
end

0 commit comments

Comments
 (0)