refspec: make hash size independent