threads / discuss / 26598

Wrong 'find' executed by git gc with cygwin

Subject: Wrong 'find' executed by git gc with cygwin

## tl;dr

One message between Feb 25, 2011 and Feb 25, 2011.

replies: 0people: 1as markdown or json

redstun· Feb 25, 2011, 06:52 UTC · lore
I'm using git on Windows via CYGWIN_NT-6.1 1.7.7(0.230/5/3)
when I run git gc, I got the following output
C:\bones> git gc
FIND: Parameter format not correct
Counting objects: 1897, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (631/631), done.
Writing objects: 100% (1897/1897), done.
Total 1897 (delta 1196), reused 1897 (delta 1196)

Looks like git gc expects /usr/bin/find from cygwin to be executed, but it's Windows find command got executed actually.

Probably find should be executed as /usr/bin/find to avoid this problem?

N.B. altering the PATH by putting /usr/bin ahead is not eligible because there're many other batch program expect find to be the Windows find command.

Thanks

← back to recent threads