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 06e0895cdc5dff0ecb31616b6c9cb136947954f7
Showing with 7 additions and 5 deletions.
  1. +1 −1 etc/taskcluster/decision_task.py
  2. +6 −4 etc/taskcluster/decisionlib.py
@@ -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 06e0895

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