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
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Oct 31, 2007, 23:55 UTC
Message-ID
<Pine.LNX.4.64.0710312354180.4362@racer.site>
In-Reply-To
<7v4pg6hq8u.fsf@gitster.siamese.dyndns.org>
Hi,
On Wed, 31 Oct 2007, Junio C Hamano wrote:
> "type"?  That's probably better than using "which", but sounds quite 
> wrong.  Why not add Makefile target that the shell scripts depend on to 
> see if necessary tools are available and let the builder know if they 
> are not?

I thought the accord was that "cpio" is a _runtime_ dependency. But yes, I agree "type" is not necessarily the best choice. Maybe testing the exit code for 127 (not found) is the better choice?

Ciao, Dscho

Previous: Junio C HamanoNext: Linus Torvalds
Message 4 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.