未验证 提交 c629db19 编写于 作者: L Lukáš Doktor

Merging pull request 2404

Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>

* https://github.com/avocado-framework/avocado:
  avocado/core/job.py: don't attempt to run git if .git doesn't exist
  Revert "avocado/core/job.py: don't attempt to run git if .git doesn't exist"
...@@ -345,7 +345,7 @@ class Job(object): ...@@ -345,7 +345,7 @@ class Job(object):
olddir = os.getcwd() olddir = os.getcwd()
try: try:
os.chdir(base_dir) os.chdir(os.path.abspath(base_dir))
cmd = "%s show --summary --pretty='%%H'" % git cmd = "%s show --summary --pretty='%%H'" % git
res = process.run(cmd, ignore_status=True, verbose=False) res = process.run(cmd, ignore_status=True, verbose=False)
if res.exit_status == 0: if res.exit_status == 0:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册