seperated git clone and git branch so that directroy test makes sense.