But we *do* want to compare against the empty tree. 

--
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 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.