Skip to content

Commit 07efbce

Browse files
committed
failing test for us setting up remote information after cloning (#450)
1 parent c788b51 commit 07efbce

File tree

1 file changed

+15
-0
lines changed
  • git-repository/tests/clone

1 file changed

+15
-0
lines changed

git-repository/tests/clone/mod.rs

+15
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ mod blocking_io {
1111
use crate::remote;
1212

1313
#[test]
14+
#[ignore]
1415
fn fetch_only_with_configuration() -> crate::Result {
1516
let tmp = git_testtools::tempfile::TempDir::new()?;
1617
let called_configure_remote = std::sync::Arc::new(std::sync::atomic::AtomicBool::default());
@@ -134,6 +135,20 @@ mod blocking_io {
134135
"local clone always adopts the name of the remote"
135136
);
136137

138+
let short_name = referent.name().shorten().to_str_lossy();
139+
assert_eq!(
140+
repo.branch_remote_name(short_name.as_ref())
141+
.expect("remote is set")
142+
.as_ref(),
143+
remote_name,
144+
"the remote branch information is fully configured"
145+
);
146+
assert_eq!(
147+
repo.branch_remote_ref(short_name.as_ref()).expect("present")?.as_bstr(),
148+
remote_name,
149+
"the remote branch information is fully configured"
150+
);
151+
137152
{
138153
let mut logs = referent.log_iter();
139154
assert_reflog(logs.all());

0 commit comments

Comments
 (0)