{"thread":{"id":"31379","subject":"relative objects/info/alternates doesn't work on remote SMB repo","startedAt":"2012-08-29T06:43:11Z","lastAt":"2012-10-31T11:41:21Z","messageCount":8,"participants":["Orgad and Raizel Shaneh","Torsten Bögershausen","Nguyen Thai Ngoc Duy","Orgad Shaneh"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"198031","messageId":"CAGHpTBKNurqd0xcz9A9bC8MQU8yHfef0ozJ2Khr9uQvwHoyP2g@mail.gmail.com","threadId":"31379","inReplyTo":null,"subject":"relative objects/info/alternates doesn't work on remote SMB repo","fromName":"Orgad and Raizel Shaneh","fromEmail":"orgads@gmail.com","sentAt":"2012-08-29T06:43:11Z","receivedAt":"2012-08-29T06:43:11Z","isPatch":false,"sender":{"key":"orgads@gmail.com","avatar":"https://avatars.githubusercontent.com/u/1246544?v=4"},"body":"Hi,\n\nI have a repo accessed through //server/share/foo/repo (Using msysgit).\n\n.git/objects/info/alternates contains '../../../bare/objects'\n\nRunning 'git status' (or almost any other action) gives the following output:\nerror: object directory /server/share/foo/bare/objects does not exist;\ncheck .git/objects/info/alternates.\n\nNote that it tries to access /server instead of //server.\n\n- Orgad\n"},{"id":"198056","messageId":"503E65D3.2010809@web.de","threadId":"31379","inReplyTo":"CAGHpTBKNurqd0xcz9A9bC8MQU8yHfef0ozJ2Khr9uQvwHoyP2g@mail.gmail.com","subject":"Re: relative objects/info/alternates doesn't work on remote SMB repo","fromName":"Torsten Bögershausen","fromEmail":"tboegi@web.de","sentAt":"2012-08-29T18:56:19Z","receivedAt":"2012-08-29T18:56:19Z","isPatch":false,"sender":{"key":"tboegi@web.de","avatar":"https://avatars.githubusercontent.com/u/7138363?v=4"},"body":"On 29.08.12 08:43, Orgad and Raizel Shaneh wrote:\n> Hi,\n> \n> I have a repo accessed through //server/share/foo/repo (Using msysgit).\n> \n> .git/objects/info/alternates contains '../../../bare/objects'\n> \n> Running 'git status' (or almost any other action) gives the following output:\n> error: object directory /server/share/foo/bare/objects does not exist;\n> check .git/objects/info/alternates.\n> \n> Note that it tries to access /server instead of //server.\n> \n> - Orgad\n> --\n\nYou may consider to ask this question in the msys mailing list\n(see CC above)\n\n(And please specify which version of msysgit you use)\n"},{"id":"198092","messageId":"CACsJy8BSpX7UxAEhZTqNnazAtSMp7oZtyxiBdnVoCXefWpTDEw@mail.gmail.com","threadId":"31379","inReplyTo":"CAGHpTBKNurqd0xcz9A9bC8MQU8yHfef0ozJ2Khr9uQvwHoyP2g@mail.gmail.com","subject":"Re: relative objects/info/alternates doesn't work on remote SMB repo","fromName":"Nguyen Thai Ngoc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2012-08-30T12:51:28Z","receivedAt":"2012-08-30T12:51:28Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Wed, Aug 29, 2012 at 1:43 PM, Orgad and Raizel Shaneh\n<orgads@gmail.com> wrote:\n> Hi,\n>\n> I have a repo accessed through //server/share/foo/repo (Using msysgit).\n>\n> .git/objects/info/alternates contains '../../../bare/objects'\n>\n> Running 'git status' (or almost any other action) gives the following output:\n> error: object directory /server/share/foo/bare/objects does not exist;\n> check .git/objects/info/alternates.\n>\n> Note that it tries to access /server instead of //server.\n\nCould be path normalization. What does \"git rev-parse --git-dir\" say?\nTry to run it at top working directory and a subdirectory as well.\n\nIf you set GIT_OBJECT_DIRECTORY environment variable to\n//server/share/foo/repo/.git/objects, does it work?\n-- \nDuy\n\n-- \n*** Please reply-to-all at all times ***\n*** (do not pretend to know who is subscribed and who is not) ***\n*** Please avoid top-posting. ***\nThe msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free.\n\nYou received this message because you are subscribed to the Google\nGroups \"msysGit\" group.\nTo post to this group, send email to msysgit@googlegroups.com\nTo unsubscribe from this group, send email to\nmsysgit+unsubscribe@googlegroups.com\nFor more options, and view previous threads, visit this group at\nhttp://groups.google.com/group/msysgit?hl=en_US?hl=en\n"},{"id":"198096","messageId":"CAGHpTB+TbrQLw7E+RpP8y0euYrLNOC6-sic-4x3pbxcAborFLQ@mail.gmail.com","threadId":"31379","inReplyTo":"CACsJy8BSpX7UxAEhZTqNnazAtSMp7oZtyxiBdnVoCXefWpTDEw@mail.gmail.com","subject":"Re: relative objects/info/alternates doesn't work on remote SMB repo","fromName":"Orgad and Raizel Shaneh","fromEmail":"orgads@gmail.com","sentAt":"2012-08-30T13:12:04Z","receivedAt":"2012-08-30T13:12:04Z","isPatch":false,"sender":{"key":"orgads@gmail.com","avatar":"https://avatars.githubusercontent.com/u/1246544?v=4"},"body":"On Thu, Aug 30, 2012 at 3:51 PM, Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:\n>\n> On Wed, Aug 29, 2012 at 1:43 PM, Orgad and Raizel Shaneh\n> <orgads@gmail.com> wrote:\n> > Hi,\n> >\n> > I have a repo accessed through //server/share/foo/repo (Using msysgit).\n> >\n> > .git/objects/info/alternates contains '../../../bare/objects'\n> >\n> > Running 'git status' (or almost any other action) gives the following\n> > output:\n> > error: object directory /server/share/foo/bare/objects does not exist;\n> > check .git/objects/info/alternates.\n> >\n> > Note that it tries to access /server instead of //server.\n>\n> Could be path normalization. What does \"git rev-parse --git-dir\" say?\n> Try to run it at top working directory and a subdirectory as well.\n>\n> If you set GIT_OBJECT_DIRECTORY environment variable to\n> //server/share/foo/repo/.git/objects, does it work?\n> --\n> Duy\n\ngit rev-parse --git-dir in a subdirectory has //server\n\nsetting GIT_OBJECT_DIRECTORY prints \"fatal: bad object HEAD\" on git status.\n\n- Orgad\n"},{"id":"198097","messageId":"CACsJy8B3=33FE-SbOD6Su4v_DbyuYsxfh-DxAzbJbJa5B2pyLg@mail.gmail.com","threadId":"31379","inReplyTo":"CAGHpTB+TbrQLw7E+RpP8y0euYrLNOC6-sic-4x3pbxcAborFLQ@mail.gmail.com","subject":"Re: relative objects/info/alternates doesn't work on remote SMB repo","fromName":"Nguyen Thai Ngoc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2012-08-30T13:22:12Z","receivedAt":"2012-08-30T13:22:12Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Thu, Aug 30, 2012 at 8:12 PM, Orgad and Raizel Shaneh\n<orgads@gmail.com> wrote:\n>> Could be path normalization. What does \"git rev-parse --git-dir\" say?\n>> Try to run it at top working directory and a subdirectory as well.\n>>\n>> If you set GIT_OBJECT_DIRECTORY environment variable to\n>> //server/share/foo/repo/.git/objects, does it work?\n>\n> git rev-parse --git-dir in a subdirectory has //server\n\nHmm where is your git repository? That does not look like a git\nrepository's path.\n\n> setting GIT_OBJECT_DIRECTORY prints \"fatal: bad object HEAD\" on git status.\n\nI guessed you put your repo in .../repo/.git, but I was probably\nwrong. Try setting again, pointing GIT_OBJECT_DIRECTORY to the\n\"objects\" directory inside your repository. I just want to make see if\nit's because git miscalculates this path. If setting the env variable\nworks, then it probably does.\n-- \nDuy\n\n-- \n*** Please reply-to-all at all times ***\n*** (do not pretend to know who is subscribed and who is not) ***\n*** Please avoid top-posting. ***\nThe msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free.\n\nYou received this message because you are subscribed to the Google\nGroups \"msysGit\" group.\nTo post to this group, send email to msysgit@googlegroups.com\nTo unsubscribe from this group, send email to\nmsysgit+unsubscribe@googlegroups.com\nFor more options, and view previous threads, visit this group at\nhttp://groups.google.com/group/msysgit?hl=en_US?hl=en\n"},{"id":"198099","messageId":"CAGHpTBLbPvkEGqh5PGbtNS0MKY5YutaQpx3D_Fv5oSWeR52K9A@mail.gmail.com","threadId":"31379","inReplyTo":"CACsJy8B3=33FE-SbOD6Su4v_DbyuYsxfh-DxAzbJbJa5B2pyLg@mail.gmail.com","subject":"Re: relative objects/info/alternates doesn't work on remote SMB repo","fromName":"Orgad and Raizel Shaneh","fromEmail":"orgads@gmail.com","sentAt":"2012-08-30T13:34:09Z","receivedAt":"2012-08-30T13:34:09Z","isPatch":false,"sender":{"key":"orgads@gmail.com","avatar":"https://avatars.githubusercontent.com/u/1246544?v=4"},"body":"On Thu, Aug 30, 2012 at 4:22 PM, Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:\n> On Thu, Aug 30, 2012 at 8:12 PM, Orgad and Raizel Shaneh\n> <orgads@gmail.com> wrote:\n>>> Could be path normalization. What does \"git rev-parse --git-dir\" say?\n>>> Try to run it at top working directory and a subdirectory as well.\n>>>\n>>> If you set GIT_OBJECT_DIRECTORY environment variable to\n>>> //server/share/foo/repo/.git/objects, does it work?\n>>\n>> git rev-parse --git-dir in a subdirectory has //server\n>\n> Hmm where is your git repository? That does not look like a git\n> repository's path.\n>\n\nLet me try to explain again.\nI have /d/share/bare, which is a bare repository, and /d/share/repo\nwhich is a clone with a relative path to bare/.git/objects in its\n.git/objects/info/alternates\n\nD:\\share is configured as a SMB shared folder. It is accessed using\n//server/share.\nI do not clone from this directory, but work directly in it using 'cd\n//server/share', then performing git operations.\n\n>> setting GIT_OBJECT_DIRECTORY prints \"fatal: bad object HEAD\" on git status.\n>\n> I guessed you put your repo in .../repo/.git, but I was probably\n> wrong. Try setting again, pointing GIT_OBJECT_DIRECTORY to the\n> \"objects\" directory inside your repository. I just want to make see if\n> it's because git miscalculates this path. If setting the env variable\n> works, then it probably does.\n> --\n> Duy\n\nSame result. fatal: bad object HEAD. Tried even using a full (local)\npath to the objects dir.\n\n- Orgad\n\n-- \n*** Please reply-to-all at all times ***\n*** (do not pretend to know who is subscribed and who is not) ***\n*** Please avoid top-posting. ***\nThe msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free.\n\nYou received this message because you are subscribed to the Google\nGroups \"msysGit\" group.\nTo post to this group, send email to msysgit@googlegroups.com\nTo unsubscribe from this group, send email to\nmsysgit+unsubscribe@googlegroups.com\nFor more options, and view previous threads, visit this group at\nhttp://groups.google.com/group/msysgit?hl=en_US?hl=en\n"},{"id":"202186","messageId":"CAGHpTB+o4gHfgFgLqie_hbjzWjxL94xRQi11GwS9F-Qhik0qVA@mail.gmail.com","threadId":"31379","inReplyTo":"CAGHpTBLbPvkEGqh5PGbtNS0MKY5YutaQpx3D_Fv5oSWeR52K9A@mail.gmail.com","subject":"Re: relative objects/info/alternates doesn't work on remote SMB repo","fromName":"Orgad Shaneh","fromEmail":"orgads@gmail.com","sentAt":"2012-10-30T09:28:52Z","receivedAt":"2012-10-30T09:28:52Z","isPatch":false,"sender":{"key":"orgads@gmail.com","avatar":"https://avatars.githubusercontent.com/u/1246544?v=4"},"body":"On Thu, Aug 30, 2012 at 3:34 PM, Orgad and Raizel Shaneh\n<orgads@gmail.com> wrote:\n>\n> On Thu, Aug 30, 2012 at 4:22 PM, Nguyen Thai Ngoc Duy <pclouds@gmail.com>\n> wrote:\n> > On Thu, Aug 30, 2012 at 8:12 PM, Orgad and Raizel Shaneh\n> > <orgads@gmail.com> wrote:\n> >>> Could be path normalization. What does \"git rev-parse --git-dir\" say?\n> >>> Try to run it at top working directory and a subdirectory as well.\n> >>>\n> >>> If you set GIT_OBJECT_DIRECTORY environment variable to\n> >>> //server/share/foo/repo/.git/objects, does it work?\n> >>\n> >> git rev-parse --git-dir in a subdirectory has //server\n> >\n> > Hmm where is your git repository? That does not look like a git\n> > repository's path.\n> >\n>\n> Let me try to explain again.\n> I have /d/share/bare, which is a bare repository, and /d/share/repo\n> which is a clone with a relative path to bare/.git/objects in its\n> .git/objects/info/alternates\n>\n> D:\\share is configured as a SMB shared folder. It is accessed using\n> //server/share.\n> I do not clone from this directory, but work directly in it using 'cd\n> //server/share', then performing git operations.\n>\n> >> setting GIT_OBJECT_DIRECTORY prints \"fatal: bad object HEAD\" on git\n> >> status.\n> >\n> > I guessed you put your repo in .../repo/.git, but I was probably\n> > wrong. Try setting again, pointing GIT_OBJECT_DIRECTORY to the\n> > \"objects\" directory inside your repository. I just want to make see if\n> > it's because git miscalculates this path. If setting the env variable\n> > works, then it probably does.\n> > --\n> > Duy\n>\n> Same result. fatal: bad object HEAD. Tried even using a full (local)\n> path to the objects dir.\n>\n> - Orgad\n\nAny news? This still doesn't work with 1.8.0.\n\n- Orgad\n\n-- \n*** Please reply-to-all at all times ***\n*** (do not pretend to know who is subscribed and who is not) ***\n*** Please avoid top-posting. ***\nThe msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free.\n\nYou received this message because you are subscribed to the Google\nGroups \"msysGit\" group.\nTo post to this group, send email to msysgit@googlegroups.com\nTo unsubscribe from this group, send email to\nmsysgit+unsubscribe@googlegroups.com\nFor more options, and view previous threads, visit this group at\nhttp://groups.google.com/group/msysgit?hl=en_US?hl=en\n"},{"id":"202299","messageId":"CACsJy8B4mJ1XY8NDpKOGXDwmt0_37hz7r6D6ogagKuS94qtbYw@mail.gmail.com","threadId":"31379","inReplyTo":"CAGHpTB+o4gHfgFgLqie_hbjzWjxL94xRQi11GwS9F-Qhik0qVA@mail.gmail.com","subject":"Re: relative objects/info/alternates doesn't work on remote SMB repo","fromName":"Nguyen Thai Ngoc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2012-10-31T11:41:21Z","receivedAt":"2012-10-31T11:41:21Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Tue, Oct 30, 2012 at 4:28 PM, Orgad Shaneh\n> Any news? This still doesn't work with 1.8.0.\n\nNope, sorry. It's still in my todo list.\n-- \nDuy\n"}]}