@@ -832,7 +832,11 @@ def test_fetch_unsafe_options(self, rw_repo):
832832 remote = rw_repo .remote ("origin" )
833833 tmp_dir = Path (tdir )
834834 tmp_file = tmp_dir / "pwn"
835- unsafe_options = [{"upload-pack" : f"touch { tmp_file } " }, {"upload_pack" : f"touch { tmp_file } " }]
835+ unsafe_options = [
836+ {"upload-pack" : f"touch { tmp_file } " },
837+ {"upload_pack" : f"touch { tmp_file } " },
838+ {"upload_p" : f"touch { tmp_file } " },
839+ ]
836840 for unsafe_option in unsafe_options :
837841 with self .assertRaises (UnsafeOptionError ):
838842 remote .fetch (** unsafe_option )
@@ -900,7 +904,11 @@ def test_pull_unsafe_options(self, rw_repo):
900904 remote = rw_repo .remote ("origin" )
901905 tmp_dir = Path (tdir )
902906 tmp_file = tmp_dir / "pwn"
903- unsafe_options = [{"upload-pack" : f"touch { tmp_file } " }, {"upload_pack" : f"touch { tmp_file } " }]
907+ unsafe_options = [
908+ {"upload-pack" : f"touch { tmp_file } " },
909+ {"upload_pack" : f"touch { tmp_file } " },
910+ {"upload_p" : f"touch { tmp_file } " },
911+ ]
904912 for unsafe_option in unsafe_options :
905913 with self .assertRaises (UnsafeOptionError ):
906914 remote .pull (** unsafe_option )
@@ -971,7 +979,9 @@ def test_push_unsafe_options(self, rw_repo):
971979 unsafe_options = [
972980 {"receive-pack" : f"touch { tmp_file } " },
973981 {"receive_pack" : f"touch { tmp_file } " },
982+ {"receive_p" : f"touch { tmp_file } " },
974983 {"exec" : f"touch { tmp_file } " },
984+ {"exe" : f"touch { tmp_file } " },
975985 ]
976986 for unsafe_option in unsafe_options :
977987 assert not tmp_file .exists ()
0 commit comments