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

Re: Another problem with not existing directories

From
Linus Torvalds <torvalds@osdl.org>
Date
Oct 31, 2005, 17:35 UTC
Message-ID
<Pine.LNX.4.64.0510310929361.27915@g5.osdl.org>
In-Reply-To
<1130779234.5848.15.camel@blade>
On Mon, 31 Oct 2005, Marcel Holtmann wrote:
> 
> I think there exists another problem with git-unpack-objects if the
> sub-directory in "objects" doesn't exists.
Are you sure you just don't have an old version of git on the other end?

As far as I know, git-unpack-objects will use the bog-standard "write_sha1_file()" which already knows how to create missing subdirectories.

This _sounds_ like the other end has two different versions of git, and when you "push" to it, it executes an old version, but then you have a newer version somewhere that created the sparsely-populated object directory in the first place.

This happens (for example) if you have installed an older version of git through an rpm (say, the one that comes from Fedora Core: 0.99.8) and you have that in /usr/bin, but then you have a newer version that you've built and installed yourself in your ~/bin/ directory.

If you have your PATH being set in your .bashrc, it won't trigger with a non-interactive login, so you'll use the /usr/bin/ version when pushing, but then when you log in interactively to a shell, you'll use the ~/bin one (or the other way around, I'm easily confused by the bash config file rules ;)

		Linus
Previous: Marcel HoltmannNext: Marcel Holtmann
Message 2 of 5 in “Another problem with not existing directories”
  1. Marcel HoltmannOct 31, 2005
  2. Linus TorvaldsOct 31, 2005
  3. Marcel HoltmannOct 31, 2005
  4. Junio C HamanoOct 31, 2005
  5. Marcel HoltmannOct 31, 2005

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.