return if not in a git repo
local branch used instead of $1