Oh, so that is indeed the sha of "empty tree" :D


On Wed, Jul 17, 2013 at 8:49 AM, Benjamin Quorning <notifications@github.com
> wrote:

> In lib/pre-commit/checks/whitespace_check.rb:
>
> >        return if $?.success?
> > +
> > +      if errors =~ /fatal: bad revision 'head'/
> > +        errors = `git diff-index --check --cached 4b825dc642cb6eb9a060e54bf8d69288fbee4904 -- 2>&1`
>
> But we *do* want to compare against the empty tree.
> … <#13fed549feb7607b_>
> -- Benjamin
> On 17/07/2013, at 17.40, Michael Grosser <notifications@github.com>
> wrote: In lib/pre-commit/checks/whitespace_check.rb: > return if
> $?.success? > + > + if errors =~ /fatal: bad revision 'head'/ > + errors =
> `git diff-index --check --cached 4b825dc<https://github.com/jish/pre-commit/commit/4b825dc642cb6eb9a060e54bf8d69288fbee4904>-- 2>&1` the old comment would be good "initial commit, check against empty
> tree object" can we use aaaaaaaaabbbbbbbbb or something else silly that
> does not look like a real object ? — Reply to this email directly or view
> it on GitHub.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/jish/pre-commit/pull/74/files#r5245548>
> .
>