Opened 7 years ago

Closed 21 months ago

#3164 closed task (wontfix)

Installing GitPlugin in Windows

Reported by: uribeuso Owned by: sjain
Priority: highest Component: TracGitPlugin
Severity: critical Keywords:
Cc: Trac Release: 0.12


I'm installing GitPlugin in Windows. I have installed the plugin successfully but the web-pages show this error:

Can't synchronize with the repository (GIT backend not available)

I think it's because i have some errors in trac.ini: git_bin = /usr/src/git-dev/git

I have tried with C:\Program Files\Git\bin\git.exe but it doesn't works.

Is it posible to install GitPlugin in Windows?

Attachments (0)

Change History (5)

comment:1 in reply to: ↑ description Changed 7 years ago by InstallPlugin

  • Priority changed from high to highest
  • Type changed from defect to task

I also have this problem!Help!

comment:2 Changed 6 years ago by I. Stan

I got Git working with Trac 0.11 under Windows XP by doing the following:

  1. Modified line 45 in from:

return os.popen3(cmd) # (input, output, error)
return os.popen3(" ".join(cmd)) # (input, output, error)

  1. Modified line 140 in from:

_git_bin = PathOption('git', 'git_bin', 'git', "file name of git executable")
_git_bin = Option('git', 'git_bin', 'git', "file name of git executable")

  1. Added path/to/git/bin to the PATH environment variable.
  1. In trac.ini: git_bin = git (because it won't work with a full path that contains spaces, such as "Program Files")

comment:3 Changed 4 years ago by pablocuadrado@…

  • Trac Release changed from 0.11 to 0.12

Using Windows 7 64 bit:

Tried some workarounds and recompiled the egg, but appearently, there is a problem when trying to run the "git" relying on PATH environment variable, and I also had problems when setting git_bin to:

C:\Program Files (x86)\Git\bin\git.exe

But I think this was a permissions issue. I have installed Git in C:\Git, pointed git_bin to "C:\Git\cmd\git.cmd" in trac.ini and that solved it.

Trac: 0.12 GitPlugin:

comment:4 Changed 4 years ago by anonymous

I found C:\Git\cmd\git.cmd substantially slower then using C:\Program Files\Git\bin\git.exe

C:\Git\cmd\git.cmd seems to open and closes numerous cmd.exe processes while git.exe uses git.exe and httpd.exe

comment:5 Changed 21 months ago by rjollos

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

Tickets should no longer be filed against TracGitPlugin. See GitPlugin or Git support in Trac 1.0.

Add Comment

Modify Ticket

as closed The owner will remain sjain.
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.