-
Notifications
You must be signed in to change notification settings - Fork 116
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
TypeError (no implicit conversion of nil into Array)
when creating a new project with auto repo init turned on
#336
Comments
I checked I can still go to the project's Settings -> Repositories without any error. However, when I try to Edit the repository, I see this error in the Redmine logs:
There is also an error when I try to view that repo. |
Here's what I see in
And here's the log when it's checked:
|
I also tried to manually fetch changesets using the rake task:
|
Actually there are 2 bugs here : first one : README file is not created :
second :
The repository is empty : no branches here. (I should test for nil before) |
Ok, so the first one is a different bug altogether. Let me open a new issue for that: #338 |
The second one, I traced a bit and found that the command to get branches didn't get anything. I pushed something, so Then I stumbled upon you Development Guide (https://jbox-web.github.io/redmine_git_hosting/guide/development/) and saw that you had Git 1.9.1, while I only had 1.7.1 I then upgraded my Git, and it now works! This means that redmine_git_hosting needs a minimum Git version that's higher than 1.7.1 -- which isn't stated anywhere in the docs. |
Thank you! |
I guess we can close this now, since the |
Yes, but I need to be sure.
Yes |
Btw I've just added a warning in Config Check for Git version < 1.8.5 : ec11e79 |
Fixed in Redmine trunk : http://www.redmine.org/projects/redmine/repository/revisions/13927/diff/trunk/lib/redmine/scm/adapters/git_adapter.rb but maybe I should monkey patch this method to avoid nil... |
Can you please test with the |
I think I should go to bed... It's not that... We don't use the |
I tried to Resync all projects and Flush Git cache, but I still get the 404, not the empty repo page. I pushed from my local, so
To address
to no avail. |
Actually it's worse than that... I don't completly understand the Ruby inheritance mechanism... To fix this I had to reimplement the whole GitAdapter class in XitoliteAdapter... I wanted to avoid that to avoid code duplication but it seems to be the only way... This has revealed an other issue in RepositoryController with the Now it works with Git 1.7.10 :) |
Which branch should I test now? :) |
You can do a git pull on monkey-patch-branch |
I've reverted the doc but it was already here : https://jbox-web.github.io/redmine_git_hosting/download/index.html ;) |
Both the 404 and 500 are gone! However, I still see the empty repo page, despite having pushed |
Check your Hook url in plugin settings |
I've merged the patch in devel and v1.x branches so you can switch back to v1.x |
What value should I assign to Hooks URL? I have mine as the Redmine root URL, with https:// (e.g. |
That should be fine. |
Will there be any issues with an untrusted SSL cert/CA for HTTPS Hooks URLs (we have a company-internal CA)? |
My Hooks URL isn't being hit at all, looking at |
You won't see it here but in |
There's also nothing logged in |
Just to add, I'm not seeing the I have Ruby 1.8.7 installed globally on my server, so it's available to the
|
I've also executed this manually:
but still, nothing is happening. What else can I check? |
I see something new! The repo isn't updated in Redmine only for the initial push.
|
My current workaround is I added a cron job to run the Will wait for your feedback. |
in
|
BTW, that's not in the How To Install page. :-p I updated my |
You're right. I'm gonna update the doc. |
Anyway, the original issue has already been fixed, |
I have Automatically initialize Git repositories for new projects turned on, and I create a new project. I get this error in Redmine's
production.log
:NOTE: This also happens when Automatically initialize Git repositories for new projects is turned off, then I create the project, then try to create the repository.
The text was updated successfully, but these errors were encountered: