Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix commit count task error #2361

Merged
merged 1 commit into from Apr 27, 2023
Merged

Fix commit count task error #2361

merged 1 commit into from Apr 27, 2023

Conversation

ABrain7710
Copy link
Contributor

@ABrain7710 ABrain7710 commented Apr 27, 2023

Description

  • An error occurs in get_repo_commit_count when the repo is empty (.git doesn't exist)

This PR fixes #
Traceback (most recent call last): File "/home/sean/github/rh-k12/augur/tasks/git/util/facade_worker/facade_worker/utilitymethods.py", line 156, in get_repo_commit_count check_commit_count_cmd = check_output(["git","--git-dir",repo_loc, "rev-list", "--count", "HEAD"]) File "/usr/lib/python3.8/subprocess.py", line 415, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "/usr/lib/python3.8/subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['git', '--git-dir', '/mnt/data/repopadre/25478/github.com/apache/incubator-guacamole/.git', 'rev-list', '--count', 'HEAD']' returned non-zero exit status 128.

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Andrew Brain <andrewbrain2019@gmail.com>
Copy link
Contributor

@IsaacMilarky IsaacMilarky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ABrain7710 ABrain7710 merged commit 7bcfccc into dev Apr 27, 2023
2 checks passed
@ABrain7710 ABrain7710 deleted the fix-commit-count-error branch April 27, 2023 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants