[BUG] "echo HEAD | git cat-file --batch=''" fails catastrophically
- From
Samuel Bronson <naesten@gmail.com>
- Date
- Dec 11, 2013, 04:37 UTC
- Message-ID
- <CAJYzjmdHdLZaBijahepOQDJtDd_TdojT4ivNxGrcerRfEuHQEg@mail.gmail.com>
Observe:
% echo HEAD | git cat-file --batch=
fatal: object fde075cb72fc0773d8e8ca93d55a35d77bb6688b changed type!?
Without the =, it works fine; with a string that has both "%(objecttype)" and "%(objectsize)", it's fine; but when you don't include both, it complains about one of the values that you did not mention having changed.
jrnieder fingered v1.8.4-rc0~7^2~15 as the (likely?) culprit here.