Dothem: let distclean run before switching to another revision

We run "make distclean" when --scratch is in effect, but that should
be done using the current Makefile and set of sources before flipping
to another branch.
This commit is contained in:
Junio C Hamano
2020-02-19 14:50:16 -08:00
parent 060a59e091
commit 9c6d544707

15
Dothem
View File

@@ -166,13 +166,6 @@ do
cd "$BUILDBASE/$branch"
git reset --hard &&
case "$(git symbolic-ref HEAD)" in
"refs/heads/$branch")
: ;;
*)
git checkout "$branch" &&
git reset --hard || exit
esac &&
case "$scratch" in
'')
@@ -185,6 +178,14 @@ do
;;
esac &&
case "$(git symbolic-ref HEAD)" in
"refs/heads/$branch")
: ;;
*)
git checkout "$branch" &&
git reset --hard || exit
esac &&
case "$private" in
'')
;;