diff options
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/lib/oeqa/utils/metadata.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/lib/oeqa/utils/metadata.py b/meta/lib/oeqa/utils/metadata.py index b7def77224..70a27569f2 100644 --- a/meta/lib/oeqa/utils/metadata.py +++ b/meta/lib/oeqa/utils/metadata.py | |||
| @@ -72,8 +72,10 @@ def git_rev_info(path): | |||
| 72 | info['commit'] = subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=path).decode('utf-8').strip() | 72 | info['commit'] = subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=path).decode('utf-8').strip() |
| 73 | except subprocess.CalledProcessError: | 73 | except subprocess.CalledProcessError: |
| 74 | pass | 74 | pass |
| 75 | return info | 75 | try: |
| 76 | 76 | info['commit_count'] = int(subprocess.check_output(["git", "rev-list", "--count", "HEAD"], cwd=path).decode('utf-8').strip()) | |
| 77 | except subprocess.CalledProcessError: | ||
| 78 | pass | ||
| 77 | try: | 79 | try: |
| 78 | repo = Repo(path, search_parent_directories=True) | 80 | repo = Repo(path, search_parent_directories=True) |
| 79 | except (InvalidGitRepositoryError, NoSuchPathError): | 81 | except (InvalidGitRepositoryError, NoSuchPathError): |
