fixed an error on getting remote branch's SHAKey