Modify

Opened 14 years ago

Closed 14 years ago

#7246 closed defect (worksforme)

[git] git_bin doesn't strip # comments and spaces correctly.

Reported by: anonymous Owned by: Herbert Valerio Riedel
Priority: low Component: GitPlugin
Severity: major Keywords: giterror retrieve version synchronize
Cc: Trac Release: 0.12

Description

Trac 0.12, git 1.7.0.2.msysgit.0, tracgit 0.12.0.2dev.

If you have comments and spaces after the filename in git_bin, GitPlugin will report

Warning: Can't synchronize with repository "(default)" (GIT backend not available). Look in the Trac log for more information.

due to

Trac[git_fs] ERROR: GitError: Could not retrieve GIT version

For example, this will fail :

git_bin = path\to\git.exe # Abandon all hope.

Whereas this will succeed

git_bin = path\to\git.exe
# Sunshine & kittens!

This caused me hours of grief. Hope I help others.

Attachments (0)

Change History (3)

comment:1 in reply to:  description Changed 14 years ago by anonymous

Could I (initial poster) also suggest a more informative error message? Perhaps...

  • The full path- & filename that GitPlugin is attempting to use.
  • The OS response in case of error (if any).
  • The version string or error returned by git.exe which GitPlugin then attempts to parse.

comment:2 Changed 14 years ago by asn@…

I still get:

ERROR: GitError: Could not retrieve GIT version

and don't get it fixed.

openSUSE 11.1 trac 0.12 git 1.7.1

comment:3 Changed 14 years ago by Herbert Valerio Riedel

Resolution: worksforme
Status: newclosed

Made error message slightly more informative in c50d90dacb59001fc1d40f92f55a187f2ef012f8

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Herbert Valerio Riedel.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.