wsgi and git

Issue #534 resolved
Gilles Bouthenot created an issue

When setting up Rhode code as described here:

Everything works, but as soon as a git repo is created, or scanned, the following error occurs: {{{ File "/var/www/rhodecode-venv/lib/python2.7/site-packages/paste/deploy/", line 247, in loadapp return loadobj(APP, uri, name=name, kw) File "/var/www/rhodecode-venv/lib/python2.7/site-packages/paste/deploy/", line 272, in loadobj return context.create() File "/var/www/rhodecode-venv/lib/python2.7/site-packages/paste/deploy/", line 710, in create return self.object_type.invoke(self) File "/var/www/rhodecode-venv/lib/python2.7/site-packages/paste/deploy/", line 146, in invoke return fix_call(context.object, context.global_conf, context.local_conf) File "/var/www/rhodecode-venv/lib/python2.7/site-packages/paste/deploy/", line 56, in fix_call val = callable(args, *kw) File "/var/www/rhodecode-venv/lib/python2.7/site-packages/rhodecode/config/", line 40, in make_app config = load_environment(global_conf, app_conf) File "/var/www/rhodecode-venv/lib/python2.7/site-packages/rhodecode/config/", line 87, in load_environment repo2db_mapper(ScmModel().repo_scan(repos_path)) File "/var/www/rhodecode-venv/lib/python2.7/site-packages/rhodecode/model/", line 205, in repo_scan repos[name] = klass(path[1]) File "/var/www/rhodecode-venv/lib/python2.7/site-packages/rhodecode/lib/vcs/backends/git/", line 67, in init abspath(get_user_home(), '.gitconfig'), File "/var/www/rhodecode-venv/lib/python2.7/site-packages/rhodecode/lib/vcs/utils/", line 9, in <lambda>

File "/usr/lib/python2.7/", line 68, in join elif path == '' or path.endswith('/'): AttributeError: 'NoneType' object has no attribute 'endswith' }}}

I checked that /var/www/.gitconfig exists and is writable by www-data

Comments (6)

  1. Marcin Kuzminski repo owner

    It's a known problem, 1.3.6 has a bug with supporting bare git repos, that has been fixed in beta branch (ETA to be released end of this month)

  2. Gilles Bouthenot reporter

    This only affects wsgi ?

    I now use reverse proxy, and I did not bump into this issue. (maybe they are other problems ?)

  3. Marcin Kuzminski repo owner

    Yes, the `get_user_home()` function probably also returns None, when in wsgi, since there's no HOME env variable set, that issue also has been fixed in 1.4

  4. Log in to comment