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

Re: git describe origin ?

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 7, 2007, 17:14 UTC
Message-ID
<Pine.LNX.4.64.0707071812570.4093@racer.site>
In-Reply-To
<38b2ab8a0707070953s33ca0d1aw879fd3d1a986aaeb@mail.gmail.com>
Hi,
On Sat, 7 Jul 2007, Francis Moreau wrote:
Show 18 quoted lines
> On 7/7/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> > On Sat, 7 Jul 2007, Francis Moreau wrote:
> > 
> > > I also played with git remote and did something silly like:
> > > $ git remote add bob /tmp/dummy # dummy does not exist
> > > $ git remote show bob
> > > fatal: '/tmp/dummy': unable to chdir or not a git archive
> > > fatal: The remote end hung up unexpectedly
> > > ls-remote --heads /tmp/dummy: command returned error: 1
> > >
> > > Maybe the output could be improved to be more readable.
> > 
> > The first line is very helpful IMHO:
> > 
> >         fatal: '/tmp/dummy': unable to chdir or not a git archive
> > 
> 
> yep but the 2 others are just noise, aren't they ?

There are actually four programs involved, it seems. You get an error message from all except "git remote".

> BTW, shouldn't "git remote add" have complained at first ?

No. Sometimes the URL is not yet available, yet, you want to add it for later reference (think bundles). Sometimes you are simply offline.

Ciao, Dscho

Previous: Francis MoreauNext: Francis Moreau
Message 4 of 6 in “git describe origin ?”
  1. Francis MoreauJul 7, 2007
  2. Johannes SchindelinJul 7, 2007
  3. Francis MoreauJul 7, 2007
  4. Johannes SchindelinJul 7, 2007
  5. Francis MoreauJul 7, 2007
  6. Francis MoreauJul 8, 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.