return if not in a git repo

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

local branch used instead of $1