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

[PATCH] repack: find -> /usr/bin/find, as for cygwin

From
ryenus ◇ <ryenus@gmail.com>
Date
Mar 19, 2011, 12:08 UTC
Message-ID
<AANLkTimHof_MNSGbU2KGX=7Q3MQpjkzXK+xyGGVjbngR@mail.gmail.com>

If I run Cygwin git directly from cmd.exe instead of from a shell, e.g. bash, I get the following error when executing git repack

FIND: Parameter format not correct

that's because in git-repack.sh, 'find' is called without its full path, this patch corrects this

Signed-off-by: ryenus <ryenus@gmail.com>
---
 git-repack.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-repack.sh b/git-repack.sh
index 624feec..212caa7 100755
--- a/git-repack.sh
+++ b/git-repack.sh
@@ -64,7 +64,7 @@ case ",$all_into_one," in
 ,t,)
        args= existing=
        if [ -d "$PACKDIR" ]; then
-               for e in `cd "$PACKDIR" && find . -type f -name '*.pack' \
+               for e in `cd "$PACKDIR" && /usr/bin/find . -type f
-name '*.pack' \
                        | sed -e 's/^\.\///' -e 's/\.pack$//'`
                do
                        if [ -e "$PACKDIR/$e.keep" ]; then
--
1.7.4
Next: Nguyen Thai Ngoc Duy
Message 1 of 14 in “repack: find -> /usr/bin/find, as for cygwin”
  1. repack: find -> /usr/bin/find, as for cygwinryenus ◇, Mar 19, 2011
  2. Nguyen Thai Ngoc DuyMar 19, 2011
  3. René ScharfeMar 19, 2011
  4. Nguyen Thai Ngoc DuyMar 19, 2011
  5. Nguyen Thai Ngoc DuyMar 19, 2011
  6. ryenus ◇Mar 19, 2011
  7. ryenus ◇Mar 19, 2011
  8. Nguyen Thai Ngoc DuyMar 19, 2011
  9. Junio C HamanoMar 19, 2011
  10. ryenus ◇Mar 20, 2011
  11. ryenus ◇Mar 20, 2011
  12. Matthieu MoyMar 20, 2011
  13. ryenus ◇Mar 20, 2011
  14. Erik Faye-LundMar 21, 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.