hash-object: always try to set up the git repository