GitRepository: allow repo inititialization from subdir
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 5 Jun 2012 11:55:19 +0000 (14:55 +0300)
committerJun Wang <junbill.wang@samsung.com>
Wed, 27 Jan 2016 09:39:42 +0000 (17:39 +0800)
commit741369ee6d24e6af3eb7aa2f897458aca2154110
treef88c219b6edf5cbdc7f834324ccdb37d5a817ade
parent2fcd5451115093ecf0dfc2ec3c40a35b163ebd3e
GitRepository: allow repo inititialization from subdir

This allows initialization of a GitRepository object, even if the
current working directory (or path given to GitRepository) is not the
top level directory of the git repository.

Don't guess the git meta data dir, but, take it as reported by git
itself.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>