Ticket #7246 (closed defect: worksforme)

Opened 3 years ago

Last modified 3 years ago

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

Reported by: anonymous Assigned to: hvr
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

Change History

(in reply to: ↑ description ) 06/15/10 10:21:24 changed 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.

06/29/10 09:37:30 changed by asn@cynapses.org

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

10/16/10 14:55:47 changed by hvr

  • status changed from new to closed.
  • resolution set to worksforme.

Made error message slightly more informative in c50d90dacb59001fc1d40f92f55a187f2ef012f8


Add/Change #7246 ([git] git_bin doesn't strip # comments and spaces correctly.)




Change Properties
Action