You can only change to the old version of the latest merge
so there is no point in passing it in
no_build=true
fi
-if [ "$1" ]; then
- tree=$1
- shift
-else
- tree=
-fi
if [ "$1" ]; then
ver="next-${1#next-}"
shift
line="$(tail -n 1 "$SHA1_FILE")"
# strip everything after the first tab character
-stree=${line%% *}
-if [ "$tree" ]; then
- if [ "$tree" != "$stree" ]; then
- echo "That is not the last tree merged ($tree v $stree)" 1>&2
- exit 1
- fi
-else
- tree="$stree"
-fi
+tree=${line%% *}
if [ -z "$ver" ] && [ -f "../old-versions/$tree" ]; then
ver=$(cat "../old-versions/$tree")