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

Re: Git clone behaviour change in 1.5.6 (vs 1.5.5.1)

From
Brandon Casey <casey@nrlssc.navy.mil>
Date
Jun 23, 2008, 21:03 UTC
Message-ID
<0YbSdnKH0_SP30-YMV0Y1aH4SO46yc6x_2EA1VGwPtV_CltGk-7wdg@cipher.nrlssc.navy.mil>
In-Reply-To
<20080623203835.GA8105@sigill.intra.peff.net>
Jeff King wrote:
Show 8 quoted lines
> On Mon, Jun 23, 2008 at 03:56:41PM -0400, Daniel Barkalow wrote:
> 
>>> Switching to the 1.5.6 release from 1.5.5.1, I found out that the
>>> rewritten git-clone command changed its behaviour wrt cloning to a
>>> non-existing destination directory structure. In the shell version the
>>> destination (work tree) is created with 'mkdir -p' but in the C
>>> version with just the mkdir() call which doesn't create the parent
>>> directories.
> Here is a partial fix.

There is a mkdir_p() in builtin-merge-recursive.c which calls safe_create_leading_directories() in sha1_file.c

Can these functions be reused?
-brandon
Previous: Jeff KingNext: Jeff King
Message 4 of 10 in “Git clone behaviour change in 1.5.6 (vs 1.5.5.1)”
  1. Kalle VahlmanJun 23, 2008
  2. Daniel BarkalowJun 23, 2008
  3. Jeff KingJun 23, 2008
  4. Brandon CaseyJun 23, 2008
  5. clone: create intermediate directories of destination repoJeff King, Jun 24, 2008
  6. Junio C HamanoJun 24, 2008
  7. Jeff KingJun 24, 2008
  8. Daniel BarkalowJun 24, 2008
  9. Jeff KingJun 25, 2008
  10. Daniel BarkalowJun 25, 2008

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.