git-remote-testgit: make local a function