Skip to content

Commit b3d7b50

Browse files
committed
Auto merge of #5004 - BurNiinTRee:pijul-config-key, r=matklad
Added "pijul" as a config key for cargo-new.vcs in .cargo/config Currently Pijul can only be set as a version control from the command-line but not from the cargo-new.vcs key in .cargo/config
2 parents cd5b980 + be82984 commit b3d7b50

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cargo/ops/cargo_new.rs

+1
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,7 @@ fn global_config(config: &Config) -> CargoResult<CargoNewConfig> {
590590
let vcs = match vcs.as_ref().map(|p| (&p.val[..], &p.definition)) {
591591
Some(("git", _)) => Some(VersionControl::Git),
592592
Some(("hg", _)) => Some(VersionControl::Hg),
593+
Some(("pijul", _)) => Some(VersionControl::Pijul),
593594
Some(("none", _)) => Some(VersionControl::NoVcs),
594595
Some((s, p)) => {
595596
return Err(internal(format!("invalid configuration for key \

0 commit comments

Comments
 (0)