diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-06-21 14:14:41 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-21 07:14:41 -0700 |
commit | aed20a9b626928c5d8b146ba1652d8a97b967fd2 (patch) | |
tree | a45caf1c6564b8ef999ee17b56900aa50c5f8995 /infra/ci | |
parent | f43633e0ec989852cb646163cdaa46896efc7d64 (diff) | |
download | oss-fuzz-aed20a9b626928c5d8b146ba1652d8a97b967fd2.tar.gz |
ci: Fix get_changed_files_output (#5944)
* ci: Fix get_changed_files_output
* Update project_tests.yml
* ci: Fix presubmit checks
* ci: Use fetch-depth:0 instead of --unshallow
Diffstat (limited to 'infra/ci')
-rwxr-xr-x | infra/ci/build.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/infra/ci/build.py b/infra/ci/build.py index bf8dca86c..8de73636f 100755 --- a/infra/ci/build.py +++ b/infra/ci/build.py @@ -38,7 +38,7 @@ LANGUAGES_WITH_COVERAGE_SUPPORT = ['c', 'c++', 'go', 'jvm', 'rust'] def get_changed_files_output(): """Returns the output of a git command that discovers changed files.""" branch_commit_hash = subprocess.check_output( - ['git', 'merge-base', 'FETCH_HEAD', 'origin/HEAD']).strip().decode() + ['git', 'merge-base', 'HEAD', 'origin/HEAD']).strip().decode() return subprocess.check_output( ['git', 'diff', '--name-only', branch_commit_hash + '..']).decode() |