Skip to content

Commit

Permalink
Don’t fail tasks if a branch was fast-forward-pushed since the trigge…
Browse files Browse the repository at this point in the history
…ring push event
  • Loading branch information
SimonSapin committed Nov 5, 2019
1 parent 0870534 commit 7cf489c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etc/taskcluster/decisionlib.py
Expand Up @@ -482,7 +482,7 @@ def with_repo(self, sparse_checkout=None, shallow=True):
git += """
git fetch {depth} %GIT_URL% %GIT_REF%
git reset --hard %GIT_SHA%
""".format(depth="--depth 1" if shallow else "")
""".format(depth="--depth 100" if shallow else "")
return self \
.with_git() \
.with_script(git) \
Expand Down Expand Up @@ -604,7 +604,7 @@ def with_repo(self, shallow=True):
cd repo
git fetch {depth} "$GIT_URL" "$GIT_REF"
git reset --hard "$GIT_SHA"
""".format(depth="--depth 1" if shallow else ""))
""".format(depth="--depth 100" if shallow else ""))

def with_curl_script(self, url, file_path):
self.curl_scripts_count += 1
Expand Down

0 comments on commit 7cf489c

Please sign in to comment.