Opened 5 years ago

Closed 20 months ago

#9641 closed defect (wontfix)

Source browser fails with SMB hosted git repository

Reported by: jan.hurst@… Owned by: hvr
Priority: normal Component: GitPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


I have configured my Trac, TracGit on a Windows XP + Apache machine, and a git repository that lives on a Windows hosted SMB share.

I can use trac-admin $ENV repository add/remove/list/resync with no problems and the resync appears to work correctly.

However when I got to the web interface, the browse source tab is not available. When I manually enter http://my_env_url/browser I receive:

GitError: GIT control files not found, maybe wrong directory?

Similarly, in the trac.log file (with DEBUG loggin) I see:

2011-12-28 10:50:31,065 Trac[git_fs] INFO: detected GIT version
2011-12-28 10:50:31,065 Trac[PyGIT] ERROR: GIT control files missing in '\\smbserver\share\repo.git'
2011-12-28 10:50:31,065 Trac[main] ERROR: Internal Server Error: 
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\trac\web\", line 511, in _dispatch_request
  File "C:\Python27\lib\site-packages\trac\web\", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "C:\Python27\lib\site-packages\trac\versioncontrol\web_ui\", line 341, in process_request
    reponame, repos, path = rm.get_repository_by_path(path)
  File "C:\Python27\lib\site-packages\trac\versioncontrol\", line 552, in get_repository_by_path
    return (reponame, self.get_repository(reponame),
  File "C:\Python27\lib\site-packages\trac\versioncontrol\", line 526, in get_repository
    repos = connector.get_repository(rtype, rdir, repoinfo.copy())
  File "build\bdist.win32\egg\tracext\git\", line 244, in get_repository
  File "build\bdist.win32\egg\tracext\git\", line 360, in __init__
  File "build\bdist.win32\egg\tracext\git\", line 139, in __init__
    i = Storage(repo, log, git_bin, git_fs_encoding)
  File "build\bdist.win32\egg\tracext\git\", line 252, in __init__
    raise GitError("GIT control files not found, maybe wrong directory?")
GitError: GIT control files not found, maybe wrong directory?
2011-12-28 10:50:31,111 Trac[chrome] DEBUG: Prepare chrome data for request
2011-12-28 10:50:31,127 Trac[PyGIT] ERROR: GIT control files missing in '\\smbserver\share\repo.git'
2011-12-28 10:50:31,127 Trac[chrome] ERROR: Error with navigation contributor BrowserModule: GitError: GIT control files not found, maybe wrong directory?

If I take a copy of the git repository to a local dir I end up with some Windows permission problems that I also have yet to resolve (fairly sure this is just getting the right system account with the right permissions on the local folder)

Any suggestions would be great?!

Attachments (0)

Change History (1)

comment:1 Changed 20 months ago by rjollos

  • Resolution set to wontfix
  • Status changed from new to closed

GitPlugin is deprecated. Please upgrade to Trac 1.0 and use TracGit.

Add Comment

Modify Ticket

as closed The owner will remain hvr.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.