-
Notifications
You must be signed in to change notification settings - Fork 43
Failed to create repo with Redmin 3.4.2.stable #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I've found a workaround:
After that, the first try to load the repository will fail with a warning about an unknown version, but a subsequent load will succeed to download the repository. |
Hi, Environment: Redmine version 3.4.3.stable Ruby version 2.1.5-p273 (2014-11-13) [x86_64-linux-gnu] Rails version 4.2.8 Environment production Database adapter Mysql2 SCM: Git 2.1.4 Filesystem GitRemote 2.1.4 And the error : NoMethodError (undefined method `[]' for nil:NilClass): plugins/redmine_git_remote/app/models/repository/git_remote.rb:78:in `initialize_clone' app/controllers/repositories_controller.rb:46:in `create' lib/redmine/sudo_mode.rb:63:in `sudo_mode' I could create the row by hand but i don't know how the plugin populate the fields. Thanks. |
This commits fix the create problem |
@jcppkkk 's patch indeed solves the problem - nicely done! If you can create a pull request that would be great! |
I’ll merge it if that’s the case. :)
On Thu, Nov 16, 2017 at 10:24 PM Oded Arbel ***@***.***> wrote:
@jcppkkk <https://github.com/jcppkkk> 's patch indeed solves the problem
- nicely done! If you can create a pull request that would be great!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#34 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAIS4Ily1BBbemzSg4hs6zKFaWkiZdMGks5s3PxSgaJpZM4P1dTU>
.
--
------------------------------------------------------------------------------------
Alex Dergachev Evolving Web
Lead developer web design & development
[email protected] http://evolvingweb.ca
phone 514.844.4930 300 St Sacrement, #204
fax 514.807.7499 Montreal, QC, H2Y 1X4
------------------------------------------------------------------------------------
|
Hi, @jcppkkk patch is working for me too, thanks a lot ! |
@jcppkkk Thank you, it works |
@jcppkkk patch fixes things: any chance that either @jcppkkk can submit a PR for @dergachev to merge or, since it's been a few months since this thread was opened and the fix has been verified by several people, just update the main trunk? I can submit a PR if @jcppkkk is unable and PR's the only way it will get in, but I don't want to submit the patch as though it were my own. I just need this in the main trunk as soon as possible because I've got my RedMine deployed via an autoscaling group and manually-patching is pretty much a non-starter. I'd rather not have to have my own fork if I can avoid it. ;) |
@shahinam is looking at this |
@dergachev PR looks good. I have tested with Redmine |
Add extra_info to safe_attributes. fix #34
My System:
This used to work, but after upgrading redmine to 3.4.2.stable, I can no longer create new GitRemote repositories. When I do I get a crash report. The log says:
Looking further into it, it seems that
Repository
doesn't populateextra_info
any more. I've added a debug log ingit_remote.rb
line 78, andattributes
there contains:The text was updated successfully, but these errors were encountered: