# Bug: git log changes output depending on how the output is used

1 messages from 2018-10-25 to 2018-10-25. Participants: buckmartin.
Thread: https://gitlist.dev/t/49673

## buckmartin, 2018-10-25 15:26

Subject: Bug: git log changes output depending on how the output is used
Message-ID: <CAJCHkCHPpZVPX2zeHQZWGKyCpHdFFHvNqn1Db0hsAPfTdjV-+A@mail.gmail.com>
URL: https://gitlist.dev/e/CAJCHkCHPpZVPX2zeHQZWGKyCpHdFFHvNqn1Db0hsAPfTdjV-%2BA%40mail.gmail.com

```
I noticed that the piped output still prints the (HEAD -> ) :



git log --pretty=format:"%d*%B" --decorate-refs='refs/tags/*'

*bar
(tag: "123")*foo





git log --pretty=format:"%d*%B" --decorate-refs='refs/tags/*' > tmp.tmp

(HEAD -> branch)*bar
(tag: "123")*foo



I would expect the output that is printed to console, not what's
present in tmp.tmp

```
