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

Re: [PATCH] Don't use cpio in git-clone when not installed

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Nov 1, 2007, 01:09 UTC
Message-ID
<fcaeb9bf0710311809o41703bc5hda36a9d44a538eeb@mail.gmail.com>
In-Reply-To
<1193861145-20357-1-git-send-email-mh@glandium.org>
BTW, you have workaround for git-merge also? It uses cpio to save/restore state.
On 11/1/07, Mike Hommey <mh@glandium.org> wrote:
Show 29 quoted lines
>
> Signed-off-by: Mike Hommey <mh@glandium.org>
> ---
>  git-clone.sh |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/git-clone.sh b/git-clone.sh
> index 0ea3c24..57e96ae 100755
> --- a/git-clone.sh
> +++ b/git-clone.sh
> @@ -191,7 +191,9 @@ fi
>  # it is local
>  if base=$(get_repo_base "$repo"); then
>         repo="$base"
> -       local=yes
> +       if type cpio > /dev/null 2>&1; then
> +               local=yes
> +       fi
>  fi
>
>  dir="$2"
> --
> 1.5.3.4
>
> -
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
-- 
Duy
Previous: Alexander SkwarNext: Junio C Hamano
Message 11 of 16 in “Don't use cpio in git-clone when not installed”
  1. Don't use cpio in git-clone when not installedMike Hommey, Oct 31, 2007
  2. Mike HommeyOct 31, 2007
  3. Junio C HamanoOct 31, 2007
  4. Johannes SchindelinOct 31, 2007
  5. Linus TorvaldsNov 1, 2007
  6. Jakub NarebskiNov 1, 2007
  7. Nguyen Thai Ngoc DuyNov 1, 2007
  8. Junio C HamanoNov 1, 2007
  9. Mike HommeyNov 1, 2007
  10. Alexander SkwarNov 1, 2007
  11. Nguyen Thai Ngoc DuyNov 1, 2007
  12. Junio C HamanoNov 1, 2007
  13. Nguyen Thai Ngoc DuyNov 1, 2007
  14. Junio C HamanoNov 1, 2007
  15. Mike HommeyNov 1, 2007
  16. Junio C HamanoNov 1, 2007

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.