rpmbuild: don't checkout master when not requested
When users don't specify the committish string explicitly we can simply
avoid the redundant 'git checkout' step. We'll keep the using the
branch that is checked-out by default by git (be that rawhide, main or
master, depending on concrete project).
Fixes: #1687