git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Wrong 'find' executed by git gc with cygwin

From
Rredstun <redstun@gmail.com>
Date
Feb 25, 2011, 06:52 UTC
Message-ID
<AANLkTimC3AhO7c8w7dUngu4uB9PzLAa3drQqCOjYeBnR@mail.gmail.com>
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
Message 1 of 1 in “Wrong 'find' executed by git gc with cygwin”
  1. redstunFeb 25, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.