Only do the permissions workaround when actually pulling from git