From: Sebastian Kuzminsky <seb@highlab.com>
To: git@vger.kernel.org
Subject: bug in 'git describe'?
Date: Mon, 24 Sep 2018 15:45:06 -0600 [thread overview]
Message-ID: <fd340f7b-61c0-2661-bdca-c239e51bc464@highlab.com> (raw)
I think I've run in to a bug in 'git describe' (reproduced with git
2.11.0, 2.16.1, and 2.19.0.221.g150f307af).
I've got two tiny git repos whose commit graphs are identical, but where
'git describe' gives different results.
> * merge 1.1 into 2.0 (HEAD -> release-2.0)
> |\
> | * merge boo into 1.1 (tag: release/1.1.1, release-1.1)
> | |\
> | | * dummy commit (boo)
> | * | dummy commit (tag: release/1.1.0)
> * | | merge feature into 2.0
> |\ \ \
> | * | | dummy commit (feature)
> |/ / /
> * | | dummy commit (tag: release/2.0.1)
> * | | dummy commit (tag: release/2.0.0)
> |/ /
> * | dummy commit (release-1.0)
> |/
> * dummy commit (tag: release/1.0.0)
The tag 'release/1.0.0' is the first commit in history.
The histories differ only in the timestamps of the commits (and thus the
SHAs of the commit objects).
Good repo: release/2.0.1-6-gbc33a04
Bad repo: release/2.0.1-8-g2c0a20c
Details, including full copies of both repos, here:
http://highlab.com/~seb/git-describe-bug/
--
Sebastian Kuzminsky
next reply other threads:[~2018-09-24 22:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-24 21:45 Sebastian Kuzminsky [this message]
2018-09-24 22:24 ` bug in 'git describe'? Junio C Hamano
2018-09-25 15:39 ` Sebastian Kuzminsky
2018-09-25 16:05 ` Duy Nguyen
2018-09-25 16:10 ` Duy Nguyen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fd340f7b-61c0-2661-bdca-c239e51bc464@highlab.com \
--to=seb@highlab.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).