Changed logic for bare/non-bare in Repo.new: when creating a new repo, user's setting if specified, else false by default; when initializing an existing repo, user's setting if specified, else false/true if a .git dir is found/not found.
Fixed typo in repo_spec.