Don't rely on FETCH_HEAD when branches can be used

- FETCH_HEAD may default on some other historical branches, when the
  user may prefer the main branch.
- Let it be assumed to be master now until we define an interface for it
  to be dynamic.