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.
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
'')
;;
esac &&
+ case "$(git symbolic-ref HEAD)" in
+ "refs/heads/$branch")
+ : ;;
+ *)
+ git checkout "$branch" &&
+ git reset --hard || exit
+ esac &&
+
case "$private" in
'')
;;