Skip to content

Commit

Permalink
ignore --ignore-cr-at-eol for old gits
Browse files Browse the repository at this point in the history
  • Loading branch information
tahina-pro committed May 28, 2021
1 parent a7557ba commit 38d014d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .scripts/release-pre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ if ! [[ -d ulib ]]; then
fi

# Fail if the state is dirty
git diff --staged --exit-code --ignore-cr-at-eol
git diff --exit-code --ignore-cr-at-eol
# NOTE: --ignore-cr-at-eol is a recent option,
# so we should ignore it if it is not there
git diff --staged --exit-code --ignore-cr-at-eol || git diff --staged --exit-code
git diff --exit-code --ignore-cr-at-eol || git diff --exit-code

# Detect the F* version number
git fetch --tags $git_remote
Expand Down

0 comments on commit 38d014d

Please sign in to comment.