move the git preparation stage into one place

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>