diff --git a/Dothem b/Dothem index ce467d7417..b429ff7403 100755 --- a/Dothem +++ b/Dothem @@ -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 '') ;;