git-gc: run pack-refs by default unless the repo is bare