]> git.proxmox.com Git - libgit2.git/commit
odb: only provide the empty tree
authorEdward Thomson <ethomson@github.com>
Fri, 5 Aug 2016 23:30:56 +0000 (19:30 -0400)
committerEdward Thomson <ethomson@github.com>
Fri, 5 Aug 2016 23:30:56 +0000 (19:30 -0400)
commitbecadafca8b3ac69884c43a8826f929668cc7663
treeb3f48f98daa4e2d622803f84bd71152e62c1d996
parent56bbdf9349c31d6d326e4d754760549aa85bb425
odb: only provide the empty tree

Only provide the empty tree internally, which matches git's behavior.
If we provide the empty blob then any users trying to write it with
libgit2 would omit it from actually landing in the odb, which appear
to git proper as a broken repository (missing that object).
src/odb.c
tests/odb/emptyobjects.c