Modify

Opened 4 years ago

Closed 12 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

Description

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 1.7.7.1.msysgit.0
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\main.py", line 511, in _dispatch_request
    dispatcher.dispatch(req)
  File "C:\Python27\lib\site-packages\trac\web\main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "C:\Python27\lib\site-packages\trac\versioncontrol\web_ui\browser.py", line 341, in process_request
    reponame, repos, path = rm.get_repository_by_path(path)
  File "C:\Python27\lib\site-packages\trac\versioncontrol\api.py", line 552, in get_repository_by_path
    return (reponame, self.get_repository(reponame),
  File "C:\Python27\lib\site-packages\trac\versioncontrol\api.py", line 526, in get_repository
    repos = connector.get_repository(rtype, rdir, repoinfo.copy())
  File "build\bdist.win32\egg\tracext\git\git_fs.py", line 244, in get_repository
    use_committer_time=self._use_committer_time,
  File "build\bdist.win32\egg\tracext\git\git_fs.py", line 360, in __init__
    git_fs_encoding=git_fs_encoding).getInstance()
  File "build\bdist.win32\egg\tracext\git\PyGIT.py", line 139, in __init__
    i = Storage(repo, log, git_bin, git_fs_encoding)
  File "build\bdist.win32\egg\tracext\git\PyGIT.py", 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 12 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

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


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

 
Note: See TracTickets for help on using tickets.