shears.sh: use branch names instead of short commit names whenever possible