(self, repo, tag, subdir, org)
| 256 | ) |
| 257 | |
| 258 | def gitclone(self, repo, tag, subdir, org): |
| 259 | clone_dir = subdir |
| 260 | if not FLAGS.no_force_clone: |
| 261 | self.rmdir(clone_dir) |
| 262 | |
| 263 | self.cmd(f"if [[ ! -e {clone_dir} ]]; then") |
| 264 | |
| 265 | # FIXME [DLIS-4045 - Currently the tag starting with "pull/" is not |
| 266 | # working with "--repo-tag" as the option is not forwarded to the |
| 267 | # individual repo build correctly.] |
| 268 | # If 'tag' starts with "pull/" then it must be of form |
| 269 | # "pull/<pr>/head". We just clone at "main" and then fetch the |
| 270 | # reference onto a new branch we name "tritonbuildref". |
| 271 | if tag.startswith("pull/"): |
| 272 | self.cmd( |
| 273 | f" git clone --recursive --depth=1 {org}/{repo}.git {subdir}; git --git-dir {subdir}/.git log --oneline -1", |
| 274 | check_exitcode=True, |
| 275 | ) |
| 276 | self.cmd("fi") |
| 277 | self.cwd(subdir) |
| 278 | self.cmd(f"git fetch origin {tag}:tritonbuildref", check_exitcode=True) |
| 279 | self.cmd(f"git checkout tritonbuildref", check_exitcode=True) |
| 280 | else: |
| 281 | self.cmd( |
| 282 | f" git clone --recursive --single-branch --depth=1 -b {tag} {org}/{repo}.git {subdir}; git --git-dir {subdir}/.git log --oneline -1", |
| 283 | check_exitcode=True, |
| 284 | ) |
| 285 | self.cmd("fi") |
| 286 | |
| 287 | |
| 288 | def cmake_core_arg(name, type, value): |
no test coverage detected