From: ryenus ◇ Date: Sat, 19 Mar 2011 12:08:04 GMT Subject: [PATCH] repack: find -> /usr/bin/find, as for cygwin Message-ID: 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 --- 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