threads / bug / 33543

[BUG] git reflog on a tag tries to do something unexpected

Subject: [BUG] git reflog on a tag tries to do something unexpected

## tl;dr

2 messages between Apr 19, 2013 and Apr 19, 2013.

replies: 1people: 2as markdown or json

Yann Dirson· Apr 19, 2013, 07:08 UTC · lore

git reflog, when applied to a tag, should surely bail out saying there is reflog for the requested reference. However, instead it spits out a single line of abbreviated sha1's of an ancestry walk:

$ git reflog --decorate v1.8.2.1 5bda18c (tag: v1.8.2.1) 6466fbb 2137ce0 (tag: v1.8.1.6) 4bbb830 0e9b327 ...

-- 
Yann Dirson - Bertin Technologies
Duy Nguyen· Apr 19, 2013, 11:31 UTC · re: Yann Dirson · lore

Re: [BUG] git reflog on a tag tries to do something unexpected

On Fri, Apr 19, 2013 at 5:08 PM, Yann Dirson <dirson@bertin.fr> wrote:
Show 6 quoted lines
> git reflog, when applied to a tag, should surely bail out saying there is reflog
> for the requested reference.  However, instead it spits out a single line of
> abbreviated sha1's of an ancestry walk:
>
> $ git reflog --decorate v1.8.2.1
> 5bda18c (tag: v1.8.2.1) 6466fbb 2137ce0 (tag: v1.8.1.6) 4bbb830 0e9b327 ...

Also "git reflog --decorate origin/master^{}" should have bailed out instead of printing nothing.

-- 
Duy

← back to recent threads