{"thread":{"id":"12470","subject":"git-relink doesn't work on bare repos","startedAt":"2008-03-04T00:29:38Z","lastAt":"2008-03-04T15:19:19Z","messageCount":5,"participants":["John Goerzen","Sean","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"70862","messageId":"slrnfsp5vi.sa5.jgoerzen@katherina.lan.complete.org","threadId":"12470","inReplyTo":null,"subject":"git-relink doesn't work on bare repos","fromName":"John Goerzen","fromEmail":"jgoerzen@complete.org","sentAt":"2008-03-04T00:29:38Z","receivedAt":"2008-03-04T00:29:38Z","isPatch":false,"sender":{"key":"jgoerzen@complete.org","avatar":null},"body":"If I try to point git-relink at a bare repo, I get:\n\nUsage: /usr/bin/git-relink [--safe] <dir> [<dir> ...] <master_dir>\nAll directories should contain a .git/objects/ subdirectory.\n\nIn my case, both master_dir and the CWD are bare repos.\n\nThis is 1.5.4.2\n\n\n"},{"id":"70896","messageId":"BAYC1-PASMTP07875E628BE4BA7D43175FAE100@CEZ.ICE","threadId":"12470","inReplyTo":"slrnfsp5vi.sa5.jgoerzen@katherina.lan.complete.org","subject":"Re: git-relink doesn't work on bare repos","fromName":"Sean","fromEmail":"seanlkml@sympatico.ca","sentAt":"2008-03-04T07:09:59Z","receivedAt":"2008-03-04T07:09:59Z","isPatch":false,"sender":{"key":"seanlkml@sympatico.ca","avatar":"https://gravatar.com/avatar/f92923f54fc08c401fc59b71829d4b89e9b8087fbba45ff87c82e6a83aee02ae?d=mp&s=160"},"body":"On Mon, 3 Mar 2008 18:29:38 -0600\nJohn Goerzen <jgoerzen@complete.org> wrote:\n\n> If I try to point git-relink at a bare repo, I get:\n> \n> Usage: /usr/bin/git-relink [--safe] <dir> [<dir> ...] <master_dir>\n> All directories should contain a .git/objects/ subdirectory.\n> \n> In my case, both master_dir and the CWD are bare repos.\n> \n> This is 1.5.4.2\n\nHi John,\n\nIt should probably fixed to work as you would expect.   But if your bare repos\nfollow the general naming convention of ending in .git  relink will work.  That is,\nif your bare repos are named  repo.git  rather than just repo.\n\nHTH,\nSean\n"},{"id":"70945","messageId":"200803040834.14099.jgoerzen@complete.org","threadId":"12470","inReplyTo":"BAYC1-PASMTP07875E628BE4BA7D43175FAE100@CEZ.ICE","subject":"Re: git-relink doesn't work on bare repos","fromName":"John Goerzen","fromEmail":"jgoerzen@complete.org","sentAt":"2008-03-04T14:34:13Z","receivedAt":"2008-03-04T14:34:13Z","isPatch":false,"sender":{"key":"jgoerzen@complete.org","avatar":null},"body":"On Tue March 4 2008 1:09:59 am Sean wrote:\n\n> It should probably fixed to work as you would expect.   But if your bare\n\nYep, agreed there.\n\n> repos follow the general naming convention of ending in .git  relink will\n> work.  That is, if your bare repos are named  repo.git  rather than just\n> repo.\n\nI never do that because I think it's silly to have to type .git everytime ;-)\n\nIf I give people a git:// url, they already know it's a Git repo, I figure.\n\n-- John\n"},{"id":"70951","messageId":"alpine.LSU.1.00.0803041501500.22527@racer.site","threadId":"12470","inReplyTo":"200803040834.14099.jgoerzen@complete.org","subject":"Re: git-relink doesn't work on bare repos","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2008-03-04T15:03:15Z","receivedAt":"2008-03-04T15:03:15Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Tue, 4 Mar 2008, John Goerzen wrote:\n\n> On Tue March 4 2008 1:09:59 am Sean wrote:\n> \n> > repos follow the general naming convention of ending in .git relink \n> > will work.  That is, if your bare repos are named repo.git rather than \n> > just repo.\n> \n> I never do that because I think it's silly to have to type .git \n> everytime ;-)\n\nWell, it is a convention, and if you choose not to follow it, that's what \nyou get.\n\n> If I give people a git:// url, they already know it's a Git repo, I \n> figure.\n\nSo you must use \"--git-dir\" _everytime_ you are working with Git inside \nthe repo.\n\nIt's not like relink has to be performed several times per hour.\n\nCiao,\nDscho\n\n"},{"id":"70955","messageId":"200803040919.19641.jgoerzen@complete.org","threadId":"12470","inReplyTo":"alpine.LSU.1.00.0803041501500.22527@racer.site","subject":"Re: git-relink doesn't work on bare repos","fromName":"John Goerzen","fromEmail":"jgoerzen@complete.org","sentAt":"2008-03-04T15:19:19Z","receivedAt":"2008-03-04T15:19:19Z","isPatch":false,"sender":{"key":"jgoerzen@complete.org","avatar":null},"body":"On Tue March 4 2008 9:03:15 am Johannes Schindelin wrote:\n> Hi,\n>\n> On Tue, 4 Mar 2008, John Goerzen wrote:\n> > On Tue March 4 2008 1:09:59 am Sean wrote:\n> > > repos follow the general naming convention of ending in .git relink\n> > > will work.  That is, if your bare repos are named repo.git rather than\n> > > just repo.\n> >\n> > I never do that because I think it's silly to have to type .git\n> > everytime ;-)\n>\n> Well, it is a convention, and if you choose not to follow it, that's what\n> you get.\n\nThat's not documented anywhere.\n\nI mean, git is plubming, right?  I should be able to call it myrepo.exe if I \nlike, and as long as it has a .git dir with stuff in it, or is bare, it \nshould just work.\n\n> > If I give people a git:// url, they already know it's a Git repo, I\n> > figure.\n>\n> So you must use \"--git-dir\" _everytime_ you are working with Git inside\n> the repo.\n\nThat's not been my experience.  In fact, I can 'git log' quite happily inside \na bare repo.  Why on earth should git-relink care what I have named my repo?  \nIt's not like git clone, push, pull, or anything else cares.\n\n-- John\n"}]}