alpha
Login
or
Join now
nandi.uk
/
gleam
Star
2
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Fork of daniellemaywood.uk/gleam — Wasm codegen work
Star
2
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
Correctly name git repos on Windows
author
John Downey
committer
Louis Pilfold
date
3 weeks ago
(Jul 1, 2026, 2:35 PM +0100)
commit
8f24a60c
8f24a60cf47b30a2a6045fa1b7c4ec714ec084c8
parent
87a6678b
87a6678b2adc49233e7889e16ee6ed1983e7c75d
+5
-1
2 changed files
Expand all
Collapse all
Unified
Split
compiler-cli
src
dependencies
tests.rs
dependencies.rs
+1
-1
compiler-cli/src/dependencies.rs
View file
Reviewed
···
1104
1104
let name = repo
1105
1105
.trim_end_matches('/')
1106
1106
.trim_end_matches(".git")
1107
1107
-
.rsplit(['/', ':'])
1107
1107
+
.rsplit(['/', ':', '\\'])
1108
1108
.next()
1109
1109
.filter(|name| !name.is_empty())
1110
1110
.unwrap_or("repo");
+4
compiler-cli/src/dependencies/tests.rs
View file
Reviewed
···
1023
1023
git_repo_dir_name("git@github.com:gleam-lang/gleam.git"),
1024
1024
"gleam-102c9e1e5cf87965"
1025
1025
);
1026
1026
+
assert_eq!(
1027
1027
+
git_repo_dir_name("C:\\src\\gleam.git"),
1028
1028
+
"gleam-ab03c1f252f639da"
1029
1029
+
);
1026
1030
}
1027
1031
1028
1032
#[test]