Skip to content

Commit a68154f

Browse files
authored
fixed #13221 - donate_cpu_lib.py: added quick-and-dirty workaround for handling dropped commit on main branch (danmar#6917)
1 parent aa5262d commit a68154f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tools/donate_cpu_lib.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# Version scheme (MAJOR.MINOR.PATCH) should orientate on "Semantic Versioning" https://semver.org/
1717
# Every change in this script should result in increasing the version number accordingly (exceptions may be cosmetic
1818
# changes)
19-
CLIENT_VERSION = "1.3.63"
19+
CLIENT_VERSION = "1.3.64"
2020

2121
# Timeout for analysis with Cppcheck in seconds
2222
CPPCHECK_TIMEOUT = 30 * 60
@@ -133,7 +133,10 @@ def checkout_cppcheck_version(repo_path, version, cppcheck_path):
133133
hash_old = subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD'], cwd=cppcheck_path).strip()
134134

135135
print('Pulling {}'.format(version))
136-
subprocess.check_call(['git', 'pull'], cwd=cppcheck_path)
136+
# --rebase is a workaround for a dropped commit - see https://github.com/danmar/cppcheck/pull/6904
137+
# TODO: drop the commit in question
138+
# TOD: remove --rebase
139+
subprocess.check_call(['git', 'pull', '--rebase'], cwd=cppcheck_path)
137140

138141
hash_new = subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD'], cwd=cppcheck_path).strip()
139142

0 commit comments

Comments
 (0)