Patch #3836

Git repository support fails on Windows

Added by Michael Vance about 8 years ago. Updated over 7 years ago.

Status:ClosedStart date:2009-09-08
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:SCM
Target version:-

Description

Git adapter uses a git command piped to wc to count lines, no wc in Windows, etc.

redmine-git-no-wc.diff Magnifier (664 Bytes) Michael Vance, 2009-09-08 21:15

git_windows.diff Magnifier (1.33 KB) Jack Christensen, 2009-12-21 00:55

History

#1 Updated by Eric Davis about 8 years ago

Jean-Philippe, can you take a look at this patch? I don't have access to a Windows system with Redmine.

#2 Updated by Babar O'Cap about 8 years ago

Michael Vance> See my workaround, Bare repository on Windows on wiki page RedmineRepositories

#3 Updated by Adam Soltys about 8 years ago

Thanks for catching and patching this Michael. I can't believe I let this slip. I was a big Windows user until just this year and I always hated how it was treated as a second-class citizen by the Ruby community. Now here I've gone and done that myself. I'll make sure I remember to test any future patches in Windows before releasing them.

#4 Updated by Jack Christensen almost 8 years ago

The above patch causes num_revisions to always return 2.

I've added a patch that should return the correct number of revisions.

#5 Updated by Toshi MARUYAMA over 7 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

This code is removed from trunk by r3394 and 0.9 stable by r3501.

#6 Updated by Jean-Philippe Lang over 7 years ago

  • Status changed from Resolved to Closed

Indeed. This is fixed in 0.9.3.

Also available in: Atom PDF