Fix fatal: bad object 0000 when do new branch push

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>