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.