enh: show commit id of target branch

This commit is contained in:
tangfangzhi 2022-06-14 16:32:17 +08:00
parent 3c8fcc7c79
commit 3acacf163a
1 changed files with 2 additions and 0 deletions

View File

@ -82,6 +82,7 @@ def pre_test(){
sh '''
cd ${WKC}
git pull >/dev/null
git log -5
git fetch origin +refs/pull/${CHANGE_ID}/merge
git checkout -qf FETCH_HEAD
git log -5
@ -93,6 +94,7 @@ def pre_test(){
sh '''
cd ${WK}
git pull >/dev/null
git log -5
git fetch origin +refs/pull/${CHANGE_ID}/merge
git checkout -qf FETCH_HEAD
git log -5