Package | Version |
---|---|
Trac | 1.0.1 |
Genshi | 0.7 (with speedups) |
mod_wsgi | 3.4 (WSGIProcessGroup WSGIApplicationGroup %{GLOBAL}) |
MySQL | server: "5.5.37-MariaDB", client: "5.5.37-MariaDB", thread-safe: 1 |
MySQLdb | 1.2.5 |
Python | 2.7.5 (default, Jun 17 2014, 18:11:42) [GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] |
setuptools | 0.9.8 |
jQuery | 1.7.2 |
2014-08-21 19:29:00,106 Trac[git_fs] INFO: detected GIT version 1.8.3.1
2014-08-21 19:29:00,107 Trac[PyGIT] ERROR: GIT control files missing in '/srv/git/myrepo'
According to http://trac.edgewall.org/wiki/TracGit i need to set the repository to /srv/git/myrepo/.git. But i dont get a .git directory if i init it with the --bare flag.
Also, i cant push changes to the repository if i dont use the --bare flag.
If i try, i get the following error:
remote: error: refusing to update checked out branch: refs/heads/master
remote: error: By default, updating the current branch in a non-bare repository
remote: error: is denied, because it will make the index and work tree inconsistent
remote: error: with what you pushed, and will require 'git reset --hard' to match
remote: error: the work tree to HEAD.
remote: error:
remote: error: You can set 'receive.denyCurrentBranch' configuration variable to
remote: error: 'ignore' or 'warn' in the remote repository to allow pushing into
remote: error: its current branch; however, this is not recommended unless you
remote: error: arranged to update its work tree to match what you pushed in some
remote: error: other way.
remote: error:
remote: error: To squelch this message and still keep the default behaviour, set
remote: error: 'receive.denyCurrentBranch' configuration variable to 'refuse'.
To ro...@192.168.1.5:/srv/git/myrepo
And even if i create a repository without the --bare flag, i am getting the same error (GIT control files missing in '/srv/git/myrepo').
Can you please help me out... i dont know what else i can try...
Regards,
Pascal
The output of
ls /srv/git/myrepo
branches config description HEAD hooks info objects refs
a bit more information:
ls -a -Z /srv/git/myrepo
drwxrwsr-x. git git unconfined_u:object_r:var_t:s0 .
drwxr-xr-x. root root unconfined_u:object_r:var_t:s0 ..
drwxrwsr-x. git git unconfined_u:object_r:var_t:s0 branches
-rw-rw-r--. git git unconfined_u:object_r:var_t:s0 config
-rw-rw-r--. git git unconfined_u:object_r:var_t:s0 description
-rw-rw-r--. git git unconfined_u:object_r:var_t:s0 HEAD
drwxrwsr-x. git git unconfined_u:object_r:var_t:s0 hooks
drwxrwsr-x. git git unconfined_u:object_r:var_t:s0 info
drwxrwsr-x. git git unconfined_u:object_r:var_t:s0 objects
drwxrwsr-x. git git unconfined_u:object_r:var_t:s0 refs
maybe SELinux is making some trouble?
Like you asked on SO, here my logging section from the trac.ini
[logging]
log_file = trac.log
log_level = DEBUG
log_type = file
---
Deleting and typing the repo path didnt work.
I also tried to config the repository in the trac.ini in the repositories section like this:
[repositories]
project.dir = /srv/git/myrepo
project.description = This should be my repo.
project.type = git
I get the same error...
2014-08-21 23:37:34,623 Trac[PyGIT] ERROR: GIT control files missing in '/srv/git/myrepo'
The output ofls /srv/git/myrepo
branches config description HEAD hooks info objects refsa bit more information:
ls -a -Z /srv/git/myrepo
drwxrwsr-x. git git unconfined_u:object_r:var_t:s0 .
drwxr-xr-x. root root unconfined_u:object_r:var_t:s0 ..
drwxrwsr-x. git git unconfined_u:object_r:var_t:s0 branches
-rw-rw-r--. git git unconfined_u:object_r:var_t:s0 config
-rw-rw-r--. git git unconfined_u:object_r:var_t:s0 description
-rw-rw-r--. git git unconfined_u:object_r:var_t:s0 HEAD
drwxrwsr-x. git git unconfined_u:object_r:var_t:s0 hooks
drwxrwsr-x. git git unconfined_u:object_r:var_t:s0 info
drwxrwsr-x. git git unconfined_u:object_r:var_t:s0 objects
drwxrwsr-x. git git unconfined_u:object_r:var_t:s0 refsmaybe SELinux is making some trouble?
I have the same issue but the selinux is disabled.