]> code.ossystems Code Review - openembedded-core.git/commit
oeqa.utils.git.GitRepo: new arg to require topdir
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Mon, 15 Aug 2016 10:56:58 +0000 (13:56 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 25 Aug 2016 21:59:56 +0000 (22:59 +0100)
commit044c81bd916fbe7140d184eb103f74786cfef604
tree2e3701d64e685a1f58f318bd195cd0cf93b8fa15
parentdcba2302adab47b398f1ce7d09c38828ea9ae426
oeqa.utils.git.GitRepo: new arg to require topdir

Add a new 'is_topdir' argument to the GitRepo init method which
validates that the given path is the top directory of a Git repository.
Without this argument GitRepo also accepts subdirectories of a Git
repository (in which case GitRepo will point to the parent directory
that is the top directory of this repository) which may have undesired
in some cases.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oeqa/utils/git.py