Skip to content
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

unable to download_git_revision with hierarchial repositories #210

Closed
dgeo opened this issue Jun 4, 2014 · 3 comments
Closed

unable to download_git_revision with hierarchial repositories #210

dgeo opened this issue Jun 4, 2014 · 3 comments
Assignees
Labels

Comments

@dgeo
Copy link

dgeo commented Jun 4, 2014

It seems that download_git_revision_controller is skipping a part of the path:
repositories/castest/castest.git is the real path and it use repositories/castest.git .

The end user get a 'Internal server error'

using v0.7.3 branch, with redmine 2.5.1

2014-06-04 21:59:27 +0200 DEBUG [GitHosting] Lookup for git_cache_id with repository path 'repositories/castest/castest.git' ... 
2014-06-04 21:59:27 +0200 DEBUG [GitHosting] Found git_cache_id ('castest/castest'), call cache... 
2014-06-04 21:59:27 +0200 DEBUG [GitHosting] Send GitCommand : '/usr/local/www/redmine/plugins/redmine_git_hosting/bin/run_git_cmd_as_gitolite_user
' '--git-dir' 'repositories/castest/castest.git' '-c' 'core.quotepath=false' '-c' 'log.decorate=no' 'branch' '--no-color' '--verbose' '--no-abbrev'
2014-06-04 21:59:27 +0200 DEBUG [GitCache] Probing cache entry
2014-06-04 21:59:27 +0200 DEBUG [GitCache] '/usr/local/www/redmine/plugins/redmine_git_hosting/bin/run_git_cmd_as_gitolite_user' '--git-dir' 'repos
itories/castest/castest.git' '-c' 'core.quotepath=false' '-c' 'log.decorate=no' 'branch' '--no-color' '--verbose' '--no-abbrev'
2014-06-04 21:59:27 +0200 DEBUG [GitHosting] /usr/local/www/redmine/plugins/redmine_git_hosting/bin/run_git_cmd_as_gitolite_user --git-dir='reposit
ories/castest.git' rev-parse --quiet --verify 8291603bbd34bc22828f8c894578e022ba0ceb5d 2>&1
2014-06-04 21:59:27 +0200 DEBUG [GitHosting] Command failed (return 128): /usr/local/www/redmine/plugins/redmine_git_hosting/bin/run_git_cmd_as_git
olite_user --git-dir='repositories/castest.git' rev-parse --quiet --verify 8291603bbd34bc22828f8c894578e022ba0ceb5d 2>&1
2014-06-04 21:59:27 +0200 DEBUG [GitHosting] Command output : 'fatal: Not a git repository: 'repositories/castest.git''
@JaroslavHron
Copy link

I see simmilar problem with download_git_revision buttons.
It does not work in these cases:

  • if the branches have "/" in the name (we use git branches in the form "name/feature")
  • with tags in the form "v0.2" (but i havent tested if it depends on the tag form yet)

@n-rodriguez
Copy link
Contributor

@j-h : Fixed #226 !
Thank you!

@n-rodriguez
Copy link
Contributor

I close it as #217 has been solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants