Skip to content

Commit 393d721

Browse files
authored
Merge pull request rust-lang#3460 from scampi/ci-integration-head
show the HEAD of the integration branch to faciliate reproducing an error with rustfmt
2 parents 54262da + ee90de5 commit 393d721

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ci/integration.sh

+8
Original file line numberDiff line numberDiff line change
@@ -76,23 +76,31 @@ function check_fmt_base {
7676
fi
7777
}
7878

79+
function show_head {
80+
local head=$(git rev-parse HEAD)
81+
echo "Head commit of ${INTEGRATION}: $head"
82+
}
83+
7984
case ${INTEGRATION} in
8085
cargo)
8186
git clone --depth=1 https://github.com/rust-lang/${INTEGRATION}.git
8287
cd ${INTEGRATION}
88+
show_head
8389
export CFG_DISABLE_CROSS_TESTS=1
8490
check_fmt_with_all_tests
8591
cd -
8692
;;
8793
crater)
8894
git clone --depth=1 https://github.com/rust-lang-nursery/${INTEGRATION}.git
8995
cd ${INTEGRATION}
96+
show_head
9097
check_fmt_with_lib_tests
9198
cd -
9299
;;
93100
*)
94101
git clone --depth=1 https://github.com/rust-lang-nursery/${INTEGRATION}.git
95102
cd ${INTEGRATION}
103+
show_head
96104
check_fmt_with_all_tests
97105
cd -
98106
;;

0 commit comments

Comments
 (0)