mirror of https://github.com/rust-lang/rust.git
Auto merge of #87792 - GuillaumeGomez:ci-fetch, r=pietroalbini
Remove git fetch from CI https://github.com/rust-lang/rust/pull/86623 added a call to `git fetch`, which is problematic for releases. r? `@pietroalbini`
This commit is contained in:
commit
c0490a2dbb
|
@ -221,8 +221,10 @@ fi
|
|||
|
||||
if [ "$CI" != "" ]; then
|
||||
# Get some needed information for $BASE_COMMIT
|
||||
git fetch "https://github.com/$GITHUB_REPOSITORY" "$GITHUB_BASE_REF"
|
||||
BASE_COMMIT="$(git merge-base FETCH_HEAD HEAD)"
|
||||
#
|
||||
# This command gets the last merge commit which we'll use as base to list
|
||||
# deleted files since then.
|
||||
BASE_COMMIT="$(git log --author=bors@rust-lang.org -n 2 --pretty=format:%H | tail -n 1)"
|
||||
else
|
||||
BASE_COMMIT=""
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue