Skip to content

Commit 198f281

Browse files
authored
fix(forge init): handle github.com/ prefixed templates (#10151)
1 parent c232b9d commit 198f281

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/forge/src/cmd/init.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ impl InitArgs {
5959
if let Some(template) = template {
6060
let template = if template.contains("://") {
6161
template
62+
} else if template.starts_with("github.com/") {
63+
"https://".to_string() + &template
6264
} else {
6365
"https://github.com/".to_string() + &template
6466
};

0 commit comments

Comments
 (0)