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

Re: relative objects/info/alternates doesn't work on remote SMB repo

From
Orgad and Raizel Shaneh <orgads@gmail.com>
Date
Aug 30, 2012, 13:12 UTC
Message-ID
<CAGHpTB+TbrQLw7E+RpP8y0euYrLNOC6-sic-4x3pbxcAborFLQ@mail.gmail.com>
In-Reply-To
<CACsJy8BSpX7UxAEhZTqNnazAtSMp7oZtyxiBdnVoCXefWpTDEw@mail.gmail.com>
On Thu, Aug 30, 2012 at 3:51 PM, Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:
Show 23 quoted lines
>
> On Wed, Aug 29, 2012 at 1:43 PM, Orgad and Raizel Shaneh
> <orgads@gmail.com> wrote:
> > Hi,
> >
> > I have a repo accessed through //server/share/foo/repo (Using msysgit).
> >
> > .git/objects/info/alternates contains '../../../bare/objects'
> >
> > Running 'git status' (or almost any other action) gives the following
> > output:
> > error: object directory /server/share/foo/bare/objects does not exist;
> > check .git/objects/info/alternates.
> >
> > Note that it tries to access /server instead of //server.
>
> Could be path normalization. What does "git rev-parse --git-dir" say?
> Try to run it at top working directory and a subdirectory as well.
>
> If you set GIT_OBJECT_DIRECTORY environment variable to
> //server/share/foo/repo/.git/objects, does it work?
> --
> Duy
git rev-parse --git-dir in a subdirectory has //server
setting GIT_OBJECT_DIRECTORY prints "fatal: bad object HEAD" on git status.
- Orgad
Previous: Nguyen Thai Ngoc DuyNext: Nguyen Thai Ngoc Duy
Message 4 of 8 in “relative objects/info/alternates doesn't work on remote SMB repo”
  1. Orgad and Raizel ShanehAug 29, 2012
  2. Torsten BögershausenAug 29, 2012
  3. Nguyen Thai Ngoc DuyAug 30, 2012
  4. Orgad and Raizel ShanehAug 30, 2012
  5. Nguyen Thai Ngoc DuyAug 30, 2012
  6. Orgad and Raizel ShanehAug 30, 2012
  7. Orgad ShanehOct 30, 2012
  8. Nguyen Thai Ngoc DuyOct 31, 2012

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.