Skip to content

cargo new: add config option to force-create vcs when inside an existing vcs #4647

Open
@diogobaeder

Description

Hey guys,

I've created a ~/.cargo/config file in which I've set the configs I needed; however, even if I put vcs = "git" there, when I create a library with cargo new mylibrary it doesn't create the repo as well - unless I explicitly pass the argument --vcs git.

From what I saw in other issues open here, and from conversation elsewhere, it might be related to the fact that my home directory is also a repository (which I use to selectively version some files).

Any clues?

Thanks!

P.S.: I'm just starting to learn Rust, and so far I'm loving it! Great job everyone! :-)

Metadata

Assignees

No one assigned

    Labels

    A-gitArea: anything dealing with gitC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-initCommand-newS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions