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

Re: finding the right remote branch for a commit

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 15, 2007, 23:48 UTC
Message-ID
<Pine.LNX.4.64.0707160036160.14781@racer.site>
In-Reply-To
<20070715223341.GA3797@moooo.ath.cx>
Hi,

you left enough hints to convince me that you will not fix the bugs. So I will bite the bullet, and find some time this week to fix the issues.

Junio, I'd really appreciated if you considered waiting with 1.5.3 (maybe do an -rc2?) before these bugs are squashed.

On Mon, 16 Jul 2007, Matthias Lederhofer wrote:
Show 16 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> > In practice, and I consider these all bugs, it does not work:
> > 
> > - you have to say
> > 
> >   $ git --work-tree=$HOME --bare init
> > 
> >   which is a bit counterintuitive.  After all, it is _not_ a bare 
> >   repository.  The whole purpose of worktree, as far as I understand, is 
> >   to have a _detached_ repository, which would otherwise be called bare.
> 
> Use
> 
>     $ git --work-tree "$HOME" --git-dir . init
> 
> instead.

Why _should_ that be necessary at all? I _already_ told git that the working tree is somewhere else. It makes _no sense at all_ to treat the cwd as anything else than the GIT_DIR, when --work-tree but no --git-dir were specified.

> IMHO the --bare flag did not make much sense before the introduction
> of GIT_WORK_TREE and doesn't after, at least not with the meaning it
> has: why should 'git --bare' mean to use the repository from cwd?

To the contrary, it makes tons of sense. If you want to initialise a bare repository, what _more_ natural way than to say "git init --bare"? And what _more_ natural place to pick for GIT_DIR than the cwd, when you did not specify --git-dir?

> > [descriptions of bugs, that have been largely ignored]
>
> Up to now you are supposed to be in the working tree all the time when 
> using it.  Therefore I'd call these feature requests rather than bugs :)

Feature requests? WTF? What reason is there for the _requirement_ to specify a working tree, when git does not make use of it? Hmm?

Ciao, Dscho

Previous: Matthias LederhoferNext: Matthias Lederhofer
Message 6 of 7 in “finding the right remote branch for a commit”
  1. martin f krafftJul 10, 2007
  2. Johannes SchindelinJul 11, 2007
  3. martin f krafftJul 12, 2007
  4. Jakub NarebskiJul 12, 2007
  5. Matthias LederhoferJul 15, 2007
  6. Johannes SchindelinJul 15, 2007
  7. Matthias LederhoferJul 16, 2007

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.