Re: git update-ref fails to create reference. (bug)

2018-05-05 Thread Rafael Ascensão
Thanks Martin for the quick fix. On Fri, May 04, 2018 at 08:26:46PM +0200, Martin �gren wrote: > Anyway, that's not where I'm stuck... Regardless of how I try to write > tests (in t1400), they just pass beautifully even before this patch. I > might be able to look into that more on the weekend. If

Re: git update-ref fails to create reference. (bug)

2018-05-04 Thread Martin Ågren
Hi Rafael, On 4 May 2018 at 18:28, Rafael Ascensão wrote: > While trying to create a pseudo reference named REF pointing to the > empty tree iff it doesn't exist, I stumbled on the following: > > I assume both are valid ways to create such reference: > a) $ echo -e option no-deref\\nupdat

git update-ref fails to create reference. (bug)

2018-05-04 Thread Rafael Ascensão
While trying to create a pseudo reference named REF pointing to the empty tree iff it doesn't exist, I stumbled on the following: I assume both are valid ways to create such reference: a) $ echo -e option no-deref\\nupdate REF $(git hash-object -t tree /dev/null) 0