mirror of https://github.com/CGAL/cgal
Protection against loss of uncommitted stuff
This commit is contained in:
parent
f7bdc97380
commit
7fb5d8dc05
|
|
@ -3,6 +3,11 @@
|
||||||
zmodload zsh/stat
|
zmodload zsh/stat
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
if ! ${git} diff --exit-code > /dev/null || ! ${git} diff --staged --exit-code > /dev/null ; then
|
||||||
|
echo 'Your working directory contains local modifications!' >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
base=${1:-HEAD}
|
base=${1:-HEAD}
|
||||||
save=$(git rev-parse HEAD)
|
save=$(git rev-parse HEAD)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue