@@ -59,13 +59,22 @@ def make_test_git():
59
59
gitmodules_path = pjoin (directory , '.gitmodules' )
60
60
with open (gitmodules_path , 'w' ) as fh :
61
61
fh .write ('''[submodule "foobar"]\n \t path = foobar\n \t url = https://foobar.com/git\n ''' )
62
- log .info (check_output (['git' , 'update-index' , '--add' , '--cacheinfo' , '160000' , '233febf4846d7a0aeb95b6c28962e06e21d13688' , 'foobar' ], env = env ))
62
+ log .info (check_output (
63
+ [
64
+ 'git' , 'update-index' , '--add' , '--cacheinfo' , '160000' ,
65
+ '233febf4846d7a0aeb95b6c28962e06e21d13688' , 'foobar' ,
66
+ ],
67
+ env = env ,
68
+ ))
63
69
log .info (check_output (['git' , 'add' , '.' ], env = env ))
64
70
log .info (check_output (['git' , 'commit' , '-m"Add submodule"' ], env = env ))
65
71
66
72
# Add an invalid submodule URL in the invalidsubmodule branch
67
73
log .info (check_output (['git' , 'checkout' , '-b' , 'invalidsubmodule' , 'master' ], env = env ))
68
- log .info (check_output (['git' , 'submodule' , 'add' , '-b' , 'master' , './' , 'invalidsubmodule' ], env = env ))
74
+ log .info (check_output (
75
+ ['git' , 'submodule' , 'add' , '-b' , 'master' , './' , 'invalidsubmodule' ],
76
+ env = env ,
77
+ ))
69
78
log .info (check_output (['git' , 'add' , '.' ], env = env ))
70
79
log .info (check_output (['git' , 'commit' , '-m"Add invalid submodule"' ], env = env ))
71
80
# Checkout to master branch again
0 commit comments