Open an object database for read/write access.
location to store the database pointer, if opened. Set to NULL if the open failed.
path of the database's "objects" directory.
GIT_SUCCESS if the database opened; otherwise an error code describing why the open was not possible.