+
+ if [ x"$masterhash" = x"$masterhash2" ]; then
+ thismasterhash=$masterhash
+ thismasterbranch=$masterbranch
+ else
+ l=$(
+ if [ -n "$repodir" ]; then
+ cd "$repodir"
+ fi
+ git rev-list "$masterhash".."$REFNAME" | wc -l
+ )
+ l2=$(
+ if [ -n "$repodir" ]; then
+ cd "$repodir"
+ fi
+ git rev-list "$masterhash2".."$REFNAME" | wc -l
+ )
+ if [ $l -gt $l2 ]; then
+ thismasterhash=$masterhash2
+ thismasterbranch=$masterbranch2
+ else
+ thismasterhash=$masterhash
+ thismasterbranch=$masterbranch
+ fi
+ fi
+