Skip to content
Permalink
Browse files

TC: fetch all branches from github.com/servo/servo

  • Loading branch information
SimonSapin committed Jan 14, 2020
1 parent 794528f commit 7bf1a5d25b71fd004a3bba3965fbd297480e7296
Showing with 8 additions and 7 deletions.
  1. +1 −2 .taskcluster.yml
  2. +1 −1 etc/taskcluster/decision_task.py
  3. +6 −4 etc/taskcluster/decisionlib.py
@@ -45,9 +45,8 @@ tasks:
- '-e'
- '-c'
- >-
git init repo &&
git clone "$GIT_URL" repo &&
cd repo &&
git fetch "$GIT_URL" "$GIT_REF" &&
git reset --hard "$GIT_SHA" &&
python3 etc/taskcluster/decision_task.py
in:
@@ -13,7 +13,7 @@ def main(task_for):
decisionlib.Task.with_repo_bundle = lambda s, *args, **kwargs: s.with_repo(*args, *kwargs)
commits = [
"dcdf910a259005bbdd993089d12f9f7eca9a26db",
"1a31e495a19b364d98b2eae9c2718e098bfc0bde",
"de610e4d755005376bbd9a4468e24e6c576a3f47",
]
CONFIG.initial_git_sha = CONFIG.git_sha
# with decisionlib.make_repo_bundle():
@@ -511,11 +511,12 @@ def with_repo(self, sparse_checkout=None):
type .git\\info\\sparse-checkout
"""
git += """
git fetch --no-tags {} {}
git remote add origin {}
git fetch origin
git reset --hard {}
""".format(
assert_truthy(self.git_fetch_url),
assert_truthy(self.git_fetch_ref),
#assert_truthy(self.git_fetch_ref),
assert_truthy(self.git_checkout_sha),
)
return self \
@@ -647,11 +648,12 @@ def with_repo(self, alternate_object_dir=""):
git init repo
cd repo
echo "{alternate}" > .git/objects/info/alternates
time git fetch --no-tags {} {}
git remote add origin {}
time git fetch origin
time git reset --hard {}
""".format(
assert_truthy(self.git_fetch_url),
assert_truthy(self.git_fetch_ref),
#assert_truthy(self.git_fetch_ref),
assert_truthy(self.git_checkout_sha),
alternate=alternate_object_dir,
))

0 comments on commit 7bf1a5d

Please sign in to comment.
You can’t perform that action at this time.