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

Re: [PATCH 2/2] Setup working tree in describe

From
Jeff King <peff@peff.net>
Date
Jan 26, 2019, 14:28 UTC
Message-ID
<20190126142854.GA20692@sigill.intra.peff.net>
In-Reply-To
<CA+xP2SaJYD+OKC18y0zz2V6A9J8rAB0-cxMnrDmWt==8v2_uBA@mail.gmail.com>
On Sat, Jan 26, 2019 at 03:07:54PM +0100, Sebastian Staudt wrote:
Show 9 quoted lines
> Are you sure that it will fail without a working tree?
> Is it even possible to have *no* working tree?
> 
> I already tested this with some real life examples, e.g.
> 
>     git --git-dir /some/path/.git describe
> 
> From inside and outside of other repositories.
> I didn‘t hit any errors so far.
Try:
  git clone --bare . bare.git
  cd bare.git
  git describe

That works with current versions of Git, but yields "fatal: this operation must be run in a work tree" with your patch.

-Peff
PS Your patches seem whitespace-damaged. You might want to look into
   using git-send-email.
Previous: Sebastian Staudt
Message 4 of 4 in “Setup working tree in describe”
  1. 2/2 Setup working tree in describeSebastian Staudt, Jan 26, 2019
  2. Duy NguyenJan 26, 2019
  3. Sebastian StaudtJan 26, 2019
  4. Jeff KingJan 26, 2019

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.