change the logic to avoid an unbound error
move the git commands to the source folder