File tree 1 file changed +15
-0
lines changed
git-repository/tests/clone
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ mod blocking_io {
11
11
use crate :: remote;
12
12
13
13
#[ test]
14
+ #[ ignore]
14
15
fn fetch_only_with_configuration ( ) -> crate :: Result {
15
16
let tmp = git_testtools:: tempfile:: TempDir :: new ( ) ?;
16
17
let called_configure_remote = std:: sync:: Arc :: new ( std:: sync:: atomic:: AtomicBool :: default ( ) ) ;
@@ -134,6 +135,20 @@ mod blocking_io {
134
135
"local clone always adopts the name of the remote"
135
136
) ;
136
137
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
+
137
152
{
138
153
let mut logs = referent. log_iter ( ) ;
139
154
assert_reflog ( logs. all ( ) ) ;
You can’t perform that action at this time.
0 commit comments