git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git-relink doesn't work on bare repos
@ 2008-03-04  0:29 John Goerzen
  2008-03-04  7:09 ` Sean
  0 siblings, 1 reply; 5+ messages in thread
From: John Goerzen @ 2008-03-04  0:29 UTC (permalink / raw
  To: git

If I try to point git-relink at a bare repo, I get:

Usage: /usr/bin/git-relink [--safe] <dir> [<dir> ...] <master_dir>
All directories should contain a .git/objects/ subdirectory.

In my case, both master_dir and the CWD are bare repos.

This is 1.5.4.2



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

* Re: git-relink doesn't work on bare repos
  2008-03-04  0:29 git-relink doesn't work on bare repos John Goerzen
@ 2008-03-04  7:09 ` Sean
  2008-03-04 14:34   ` John Goerzen
  0 siblings, 1 reply; 5+ messages in thread
From: Sean @ 2008-03-04  7:09 UTC (permalink / raw
  To: John Goerzen; +Cc: git

On Mon, 3 Mar 2008 18:29:38 -0600
John Goerzen <jgoerzen@complete.org> wrote:

> If I try to point git-relink at a bare repo, I get:
> 
> Usage: /usr/bin/git-relink [--safe] <dir> [<dir> ...] <master_dir>
> All directories should contain a .git/objects/ subdirectory.
> 
> In my case, both master_dir and the CWD are bare repos.
> 
> This is 1.5.4.2

Hi John,

It should probably fixed to work as you would expect.   But if your bare repos
follow the general naming convention of ending in .git  relink will work.  That is,
if your bare repos are named  repo.git  rather than just repo.

HTH,
Sean

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

* Re: git-relink doesn't work on bare repos
  2008-03-04  7:09 ` Sean
@ 2008-03-04 14:34   ` John Goerzen
  2008-03-04 15:03     ` Johannes Schindelin
  0 siblings, 1 reply; 5+ messages in thread
From: John Goerzen @ 2008-03-04 14:34 UTC (permalink / raw
  To: Sean; +Cc: git

On Tue March 4 2008 1:09:59 am Sean wrote:

> It should probably fixed to work as you would expect.   But if your bare

Yep, agreed there.

> repos follow the general naming convention of ending in .git  relink will
> work.  That is, if your bare repos are named  repo.git  rather than just
> repo.

I never do that because I think it's silly to have to type .git everytime ;-)

If I give people a git:// url, they already know it's a Git repo, I figure.

-- John

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

* Re: git-relink doesn't work on bare repos
  2008-03-04 14:34   ` John Goerzen
@ 2008-03-04 15:03     ` Johannes Schindelin
  2008-03-04 15:19       ` John Goerzen
  0 siblings, 1 reply; 5+ messages in thread
From: Johannes Schindelin @ 2008-03-04 15:03 UTC (permalink / raw
  To: John Goerzen; +Cc: Sean, git

Hi,

On Tue, 4 Mar 2008, John Goerzen wrote:

> On Tue March 4 2008 1:09:59 am Sean wrote:
> 
> > repos follow the general naming convention of ending in .git relink 
> > will work.  That is, if your bare repos are named repo.git rather than 
> > just repo.
> 
> I never do that because I think it's silly to have to type .git 
> everytime ;-)

Well, it is a convention, and if you choose not to follow it, that's what 
you get.

> If I give people a git:// url, they already know it's a Git repo, I 
> figure.

So you must use "--git-dir" _everytime_ you are working with Git inside 
the repo.

It's not like relink has to be performed several times per hour.

Ciao,
Dscho


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

* Re: git-relink doesn't work on bare repos
  2008-03-04 15:03     ` Johannes Schindelin
@ 2008-03-04 15:19       ` John Goerzen
  0 siblings, 0 replies; 5+ messages in thread
From: John Goerzen @ 2008-03-04 15:19 UTC (permalink / raw
  To: Johannes Schindelin; +Cc: Sean, git

On Tue March 4 2008 9:03:15 am Johannes Schindelin wrote:
> Hi,
>
> On Tue, 4 Mar 2008, John Goerzen wrote:
> > On Tue March 4 2008 1:09:59 am Sean wrote:
> > > repos follow the general naming convention of ending in .git relink
> > > will work.  That is, if your bare repos are named repo.git rather than
> > > just repo.
> >
> > I never do that because I think it's silly to have to type .git
> > everytime ;-)
>
> Well, it is a convention, and if you choose not to follow it, that's what
> you get.

That's not documented anywhere.

I mean, git is plubming, right?  I should be able to call it myrepo.exe if I 
like, and as long as it has a .git dir with stuff in it, or is bare, it 
should just work.

> > If I give people a git:// url, they already know it's a Git repo, I
> > figure.
>
> So you must use "--git-dir" _everytime_ you are working with Git inside
> the repo.

That's not been my experience.  In fact, I can 'git log' quite happily inside 
a bare repo.  Why on earth should git-relink care what I have named my repo?  
It's not like git clone, push, pull, or anything else cares.

-- John

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

end of thread, other threads:[~2008-03-04 15:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-04  0:29 git-relink doesn't work on bare repos John Goerzen
2008-03-04  7:09 ` Sean
2008-03-04 14:34   ` John Goerzen
2008-03-04 15:03     ` Johannes Schindelin
2008-03-04 15:19       ` John Goerzen

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).