@@ -133,6 +133,7 @@ def test_clone_unsafe_options(self, rw_repo):
133133 "-vcprotocol.ext.allow=always" ,
134134 f"--template={ tmp_dir } " ,
135135 f"--bundle-uri=file://{ tmp_dir } " ,
136+ f"--separate-git-dir={ tmp_dir / 'git-dir' } " ,
136137 ]
137138 for unsafe_option in unsafe_options :
138139 with self .assertRaises (UnsafeOptionError ):
@@ -149,6 +150,7 @@ def test_clone_unsafe_options(self, rw_repo):
149150 {"c" : "protocol.ext.allow=always" },
150151 {"template" : tmp_dir },
151152 {"bundle_uri" : f"file://{ tmp_dir } " },
153+ {"separate_git_dir" : tmp_dir / "git-dir" },
152154 ]
153155 for unsafe_option in unsafe_options :
154156 with self .assertRaises (UnsafeOptionError ):
@@ -258,6 +260,7 @@ def test_clone_from_unsafe_options(self, rw_repo):
258260 "-c protocol.ext.allow=always" ,
259261 "-cprotocol.ext.allow=always" ,
260262 "-vcprotocol.ext.allow=always" ,
263+ f"--separate-git-dir={ tmp_dir / 'git-dir' } " ,
261264 ]
262265 for unsafe_option in unsafe_options :
263266 with self .assertRaises (UnsafeOptionError ):
@@ -270,6 +273,7 @@ def test_clone_from_unsafe_options(self, rw_repo):
270273 {"u" : f"touch { tmp_file } " },
271274 {"config" : "protocol.ext.allow=always" },
272275 {"c" : "protocol.ext.allow=always" },
276+ {"separate_git_dir" : tmp_dir / "git-dir" },
273277 ]
274278 for unsafe_option in unsafe_options :
275279 with self .assertRaises (UnsafeOptionError ):
0 commit comments