Skip to content

Commit 507579e

Browse files
committed
Update gitoxide repo URLs in a few test cases
When a repository URL is used by itself as an example and is an old `Byron/gitoxide` URL, this changes it to `GitoxideLabs/gitoxide`. This is the only situation where updating such URLs in tests carries no disadvantage, because: - In example commit messages, it is not obvious when such a change could change commit hashes that are relevant to a test. It would also sometimes invalidate gpg signatures where present, which could be confusing even if the signature is not verified, and in commit messages with `Signed-off-by` trailers, there could be further confusion. - In fixture scripts, similar effects could occur, and also their associated archives would have to be regenerated.
1 parent 65f69f7 commit 507579e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

gix-config/tests/file/access/read_only.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -268,13 +268,13 @@ fn sections_by_name() -> crate::Result {
268268
bare = false
269269
logallrefupdates = true
270270
[remote "origin"]
271-
url = [email protected]:Byron/gitoxide.git
271+
url = [email protected]:GitoxideLabs/gitoxide.git
272272
fetch = +refs/heads/*:refs/remotes/origin/*
273273
"#;
274274

275275
let config = File::try_from(config)?;
276276
let value = config.string_by("remote", Some("origin".into()), "url").unwrap();
277-
assert_eq!(value, cow_str("[email protected]:Byron/gitoxide.git"));
277+
assert_eq!(value, cow_str("[email protected]:GitoxideLabs/gitoxide.git"));
278278
Ok(())
279279
}
280280

gix-config/tests/file/write.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ fn complex_lossless_roundtrip() {
5050
logallrefupdates = true
5151
5252
[remote "origin"]
53-
url = [email protected]:Byron/gitoxide.git
53+
url = [email protected]:GitoxideLabs/gitoxide.git
5454
fetch = +refs/heads/*:refs/remotes/origin/*
5555
5656
[test] # other comment

gix-credentials/tests/protocol/context.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,12 @@ mod to_url {
173173
username: Some("user".into()),
174174
password: Some("secret".into()),
175175
host: Some("example.com:8080".into()),
176-
path: Some("Byron/gitoxide".into()),
176+
path: Some("GitoxideLabs/gitoxide".into()),
177177
..Default::default()
178178
}
179179
.to_url()
180180
.unwrap(),
181-
"https://[email protected]:8080/Byron/gitoxide"
181+
"https://[email protected]:8080/GitoxideLabs/gitoxide"
182182
);
183183
}
184184
}

0 commit comments

Comments
 (0)