Fix error message and clarify git version req; fixes #15

This commit is contained in:
Alex Dergachev 2015-06-01 20:46:20 +00:00
parent 08b64d80d9
commit 8516466c19
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ Then enable the new GitRemote SCM type in [http://redmine-root/settings?tab=repo
![](https://dl.dropbox.com/u/29440342/screenshots/AYKNZDTB-2014.11.27-15-59-06.png) ![](https://dl.dropbox.com/u/29440342/screenshots/AYKNZDTB-2014.11.27-15-59-06.png)
The plugin shells out to the following binaries, so make sure they're available: The plugin shells out to the following binaries, so make sure they're available:
* git * git 1.7.5+ - a version recent enough to support `get remote add --mirror=fetch origin URL`
* ssh-keyscan * ssh-keyscan
* ssh-keygen * ssh-keygen

View File

@ -110,7 +110,7 @@ class Repository::GitRemote < Repository::Git
end end
unless system "git", "--git-dir", clone_path, "remote", "add", "--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}" return "Unable to run: git --git-dir #{clone_path} remote add --mirror=fetch origin #{clone_url}"
end end
end end
end end