diff options
author | 2018-02-12 17:27:36 +0100 | |
---|---|---|
committer | 2018-02-12 17:27:36 +0100 | |
commit | a0468cce09c51e4d37153595bbc6a3c12d9086f0 (patch) | |
tree | be8a3f4c21418864ddcaae21ba6db694d0d64852 /dev | |
parent | 284869d016607fad339ea4d06bf1433c6ec23672 (diff) | |
parent | 9337cd70e356cc48fed6a74f23643995abdd7587 (diff) |
Merge PR #6565: [Backport script] Check .mli files are not changed.
Diffstat (limited to 'dev')
-rwxr-xr-x | dev/tools/backport-pr.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dev/tools/backport-pr.sh b/dev/tools/backport-pr.sh index d7acf01f1..e4359f703 100755 --- a/dev/tools/backport-pr.sh +++ b/dev/tools/backport-pr.sh @@ -50,6 +50,15 @@ else fi +if ! git diff --exit-code HEAD ${BRANCH} -- "*.mli"; then + echo + read -p "Some mli files are modified. Bypass? [y/N] " -n 1 -r + echo + if [[ ! $REPLY =~ ^[Yy]$ ]]; then + exit 1 + fi +fi + if [[ "${OPTION}" == "--stop-before-merging" ]]; then exit 0 fi |