diff options
Diffstat (limited to 'git_taskrepo/taskrepo.py')
-rw-r--r-- | git_taskrepo/taskrepo.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/git_taskrepo/taskrepo.py b/git_taskrepo/taskrepo.py index 130d297..8d94888 100644 --- a/git_taskrepo/taskrepo.py +++ b/git_taskrepo/taskrepo.py @@ -62,6 +62,8 @@ def _update_taskrepo(taskrepo, taskname, testinfo): cur.execute("INSERT INTO %s VALUES (?,?)" % key, (taskid, value)) def update_taskrepo(repo, taskrepo, taskpath): + if taskpath == repo.working_tree_dir: + raise TRX_TestInfo('Can''t import repo root') taskname = taskpath.split("%s/" % repo.working_tree_dir)[1] if os.path.isfile(os.path.join(taskpath, "Makefile")): os.system("make -ki -C %s testinfo.desc >/dev/null 2>&1" % taskpath) |