All of lore.kernel.org
 help / color / mirror / Atom feed
* relative objects/info/alternates doesn't work on remote SMB repo
@ 2012-08-29  6:43 Orgad and Raizel Shaneh
  2012-08-29 18:56 ` Torsten Bögershausen
  2012-08-30 12:51 ` Nguyen Thai Ngoc Duy
  0 siblings, 2 replies; 8+ messages in thread
From: Orgad and Raizel Shaneh @ 2012-08-29  6:43 UTC (permalink / raw)
  To: git

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.

- Orgad

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: relative objects/info/alternates doesn't work on remote SMB repo
  2012-08-29  6:43 relative objects/info/alternates doesn't work on remote SMB repo Orgad and Raizel Shaneh
@ 2012-08-29 18:56 ` Torsten Bögershausen
  2012-08-30 12:51 ` Nguyen Thai Ngoc Duy
  1 sibling, 0 replies; 8+ messages in thread
From: Torsten Bögershausen @ 2012-08-29 18:56 UTC (permalink / raw)
  To: Orgad and Raizel Shaneh; +Cc: git, msysGit

On 29.08.12 08:43, Orgad and Raizel Shaneh 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.
> 
> - Orgad
> --

You may consider to ask this question in the msys mailing list
(see CC above)

(And please specify which version of msysgit you use)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: relative objects/info/alternates doesn't work on remote SMB repo
  2012-08-29  6:43 relative objects/info/alternates doesn't work on remote SMB repo Orgad and Raizel Shaneh
  2012-08-29 18:56 ` Torsten Bögershausen
@ 2012-08-30 12:51 ` Nguyen Thai Ngoc Duy
  2012-08-30 13:12   ` Orgad and Raizel Shaneh
  1 sibling, 1 reply; 8+ messages in thread
From: Nguyen Thai Ngoc Duy @ 2012-08-30 12:51 UTC (permalink / raw)
  To: Orgad and Raizel Shaneh; +Cc: git, msysGit

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

-- 
*** Please reply-to-all at all times ***
*** (do not pretend to know who is subscribed and who is not) ***
*** Please avoid top-posting. ***
The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free.

You received this message because you are subscribed to the Google
Groups "msysGit" group.
To post to this group, send email to msysgit@googlegroups.com
To unsubscribe from this group, send email to
msysgit+unsubscribe@googlegroups.com
For more options, and view previous threads, visit this group at
http://groups.google.com/group/msysgit?hl=en_US?hl=en

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: relative objects/info/alternates doesn't work on remote SMB repo
  2012-08-30 12:51 ` Nguyen Thai Ngoc Duy
@ 2012-08-30 13:12   ` Orgad and Raizel Shaneh
  2012-08-30 13:22     ` Nguyen Thai Ngoc Duy
  0 siblings, 1 reply; 8+ messages in thread
From: Orgad and Raizel Shaneh @ 2012-08-30 13:12 UTC (permalink / raw)
  To: Nguyen Thai Ngoc Duy; +Cc: git, msysGit

On Thu, Aug 30, 2012 at 3:51 PM, Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:
>
> 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: relative objects/info/alternates doesn't work on remote SMB repo
  2012-08-30 13:12   ` Orgad and Raizel Shaneh
@ 2012-08-30 13:22     ` Nguyen Thai Ngoc Duy
  2012-08-30 13:34       ` Orgad and Raizel Shaneh
  0 siblings, 1 reply; 8+ messages in thread
From: Nguyen Thai Ngoc Duy @ 2012-08-30 13:22 UTC (permalink / raw)
  To: Orgad and Raizel Shaneh; +Cc: git, msysGit

On Thu, Aug 30, 2012 at 8:12 PM, Orgad and Raizel Shaneh
<orgads@gmail.com> wrote:
>> 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?
>
> git rev-parse --git-dir in a subdirectory has //server

Hmm where is your git repository? That does not look like a git
repository's path.

> setting GIT_OBJECT_DIRECTORY prints "fatal: bad object HEAD" on git status.

I guessed you put your repo in .../repo/.git, but I was probably
wrong. Try setting again, pointing GIT_OBJECT_DIRECTORY to the
"objects" directory inside your repository. I just want to make see if
it's because git miscalculates this path. If setting the env variable
works, then it probably does.
-- 
Duy

-- 
*** Please reply-to-all at all times ***
*** (do not pretend to know who is subscribed and who is not) ***
*** Please avoid top-posting. ***
The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free.

You received this message because you are subscribed to the Google
Groups "msysGit" group.
To post to this group, send email to msysgit@googlegroups.com
To unsubscribe from this group, send email to
msysgit+unsubscribe@googlegroups.com
For more options, and view previous threads, visit this group at
http://groups.google.com/group/msysgit?hl=en_US?hl=en

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: relative objects/info/alternates doesn't work on remote SMB repo
  2012-08-30 13:22     ` Nguyen Thai Ngoc Duy
@ 2012-08-30 13:34       ` Orgad and Raizel Shaneh
  2012-10-30  9:28         ` Orgad Shaneh
  0 siblings, 1 reply; 8+ messages in thread
From: Orgad and Raizel Shaneh @ 2012-08-30 13:34 UTC (permalink / raw)
  To: Nguyen Thai Ngoc Duy; +Cc: git, msysGit

On Thu, Aug 30, 2012 at 4:22 PM, Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:
> On Thu, Aug 30, 2012 at 8:12 PM, Orgad and Raizel Shaneh
> <orgads@gmail.com> wrote:
>>> 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?
>>
>> git rev-parse --git-dir in a subdirectory has //server
>
> Hmm where is your git repository? That does not look like a git
> repository's path.
>

Let me try to explain again.
I have /d/share/bare, which is a bare repository, and /d/share/repo
which is a clone with a relative path to bare/.git/objects in its
.git/objects/info/alternates

D:\share is configured as a SMB shared folder. It is accessed using
//server/share.
I do not clone from this directory, but work directly in it using 'cd
//server/share', then performing git operations.

>> setting GIT_OBJECT_DIRECTORY prints "fatal: bad object HEAD" on git status.
>
> I guessed you put your repo in .../repo/.git, but I was probably
> wrong. Try setting again, pointing GIT_OBJECT_DIRECTORY to the
> "objects" directory inside your repository. I just want to make see if
> it's because git miscalculates this path. If setting the env variable
> works, then it probably does.
> --
> Duy

Same result. fatal: bad object HEAD. Tried even using a full (local)
path to the objects dir.

- Orgad

-- 
*** Please reply-to-all at all times ***
*** (do not pretend to know who is subscribed and who is not) ***
*** Please avoid top-posting. ***
The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free.

You received this message because you are subscribed to the Google
Groups "msysGit" group.
To post to this group, send email to msysgit@googlegroups.com
To unsubscribe from this group, send email to
msysgit+unsubscribe@googlegroups.com
For more options, and view previous threads, visit this group at
http://groups.google.com/group/msysgit?hl=en_US?hl=en

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: relative objects/info/alternates doesn't work on remote SMB repo
  2012-08-30 13:34       ` Orgad and Raizel Shaneh
@ 2012-10-30  9:28         ` Orgad Shaneh
  2012-10-31 11:41           ` Nguyen Thai Ngoc Duy
  0 siblings, 1 reply; 8+ messages in thread
From: Orgad Shaneh @ 2012-10-30  9:28 UTC (permalink / raw)
  To: Nguyen Thai Ngoc Duy; +Cc: git, msysGit

On Thu, Aug 30, 2012 at 3:34 PM, Orgad and Raizel Shaneh
<orgads@gmail.com> wrote:
>
> On Thu, Aug 30, 2012 at 4:22 PM, Nguyen Thai Ngoc Duy <pclouds@gmail.com>
> wrote:
> > On Thu, Aug 30, 2012 at 8:12 PM, Orgad and Raizel Shaneh
> > <orgads@gmail.com> wrote:
> >>> 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?
> >>
> >> git rev-parse --git-dir in a subdirectory has //server
> >
> > Hmm where is your git repository? That does not look like a git
> > repository's path.
> >
>
> Let me try to explain again.
> I have /d/share/bare, which is a bare repository, and /d/share/repo
> which is a clone with a relative path to bare/.git/objects in its
> .git/objects/info/alternates
>
> D:\share is configured as a SMB shared folder. It is accessed using
> //server/share.
> I do not clone from this directory, but work directly in it using 'cd
> //server/share', then performing git operations.
>
> >> setting GIT_OBJECT_DIRECTORY prints "fatal: bad object HEAD" on git
> >> status.
> >
> > I guessed you put your repo in .../repo/.git, but I was probably
> > wrong. Try setting again, pointing GIT_OBJECT_DIRECTORY to the
> > "objects" directory inside your repository. I just want to make see if
> > it's because git miscalculates this path. If setting the env variable
> > works, then it probably does.
> > --
> > Duy
>
> Same result. fatal: bad object HEAD. Tried even using a full (local)
> path to the objects dir.
>
> - Orgad

Any news? This still doesn't work with 1.8.0.

- Orgad

-- 
*** Please reply-to-all at all times ***
*** (do not pretend to know who is subscribed and who is not) ***
*** Please avoid top-posting. ***
The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free.

You received this message because you are subscribed to the Google
Groups "msysGit" group.
To post to this group, send email to msysgit@googlegroups.com
To unsubscribe from this group, send email to
msysgit+unsubscribe@googlegroups.com
For more options, and view previous threads, visit this group at
http://groups.google.com/group/msysgit?hl=en_US?hl=en

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: relative objects/info/alternates doesn't work on remote SMB repo
  2012-10-30  9:28         ` Orgad Shaneh
@ 2012-10-31 11:41           ` Nguyen Thai Ngoc Duy
  0 siblings, 0 replies; 8+ messages in thread
From: Nguyen Thai Ngoc Duy @ 2012-10-31 11:41 UTC (permalink / raw)
  To: Orgad Shaneh; +Cc: git, msysGit

On Tue, Oct 30, 2012 at 4:28 PM, Orgad Shaneh
> Any news? This still doesn't work with 1.8.0.

Nope, sorry. It's still in my todo list.
-- 
Duy

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-10-31 11:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-29  6:43 relative objects/info/alternates doesn't work on remote SMB repo Orgad and Raizel Shaneh
2012-08-29 18:56 ` Torsten Bögershausen
2012-08-30 12:51 ` Nguyen Thai Ngoc Duy
2012-08-30 13:12   ` Orgad and Raizel Shaneh
2012-08-30 13:22     ` Nguyen Thai Ngoc Duy
2012-08-30 13:34       ` Orgad and Raizel Shaneh
2012-10-30  9:28         ` Orgad Shaneh
2012-10-31 11:41           ` Nguyen Thai Ngoc Duy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.