2023-05-11 19:33:37 +02:00
|
|
|
---
|
|
|
|
test/test_base.py | 3 ++-
|
|
|
|
test/test_remote.py | 5 ++++-
|
|
|
|
test/test_repo.py | 1 +
|
|
|
|
test/test_submodule.py | 19 +++++++++++--------
|
|
|
|
4 files changed, 18 insertions(+), 10 deletions(-)
|
|
|
|
|
2023-09-05 09:56:45 +02:00
|
|
|
Index: GitPython-3.1.34.1693646983.2a2ae77/test/test_base.py
|
|
|
|
===================================================================
|
|
|
|
--- GitPython-3.1.34.1693646983.2a2ae77.orig/test/test_base.py
|
|
|
|
+++ GitPython-3.1.34.1693646983.2a2ae77/test/test_base.py
|
2023-05-11 19:33:37 +02:00
|
|
|
@@ -109,7 +109,8 @@ class TestBase(_TestBase):
|
2023-01-04 07:35:16 +01:00
|
|
|
assert osp.isdir(osp.join(rw_repo.working_tree_dir, "lib"))
|
2023-05-11 19:33:37 +02:00
|
|
|
assert osp.isdir(rw_repo.working_dir)
|
2019-03-15 14:45:17 +01:00
|
|
|
|
2023-01-04 07:35:16 +01:00
|
|
|
- @skipIf(HIDE_WINDOWS_FREEZE_ERRORS, "FIXME: Freezes! sometimes...")
|
|
|
|
+ #@skipIf(HIDE_WINDOWS_FREEZE_ERRORS, "FIXME: Freezes! sometimes...")
|
2019-03-15 14:45:17 +01:00
|
|
|
+ @skipIf(os.environ.get('SKIP_LOCALHOST', 'false') == 'true', 'git-daemon connection error')
|
2023-01-04 07:35:16 +01:00
|
|
|
@with_rw_and_rw_remote_repo("0.1.6")
|
2019-03-15 14:45:17 +01:00
|
|
|
def test_with_rw_remote_and_rw_repo(self, rw_repo, rw_remote_repo):
|
|
|
|
assert not rw_repo.config_reader("repository").getboolean("core", "bare")
|
2023-09-05 09:56:45 +02:00
|
|
|
Index: GitPython-3.1.34.1693646983.2a2ae77/test/test_remote.py
|
|
|
|
===================================================================
|
|
|
|
--- GitPython-3.1.34.1693646983.2a2ae77.orig/test/test_remote.py
|
|
|
|
+++ GitPython-3.1.34.1693646983.2a2ae77/test/test_remote.py
|
2019-03-15 14:45:17 +01:00
|
|
|
@@ -4,6 +4,7 @@
|
|
|
|
# This module is part of GitPython and is released under
|
|
|
|
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
|
|
|
|
|
|
|
|
+import os
|
|
|
|
import random
|
|
|
|
import tempfile
|
2023-01-04 07:35:16 +01:00
|
|
|
import pytest
|
|
|
|
@@ -430,7 +431,8 @@ class TestRemote(TestBase):
|
2019-03-15 14:45:17 +01:00
|
|
|
TagReference.delete(rw_repo, new_tag, other_tag)
|
2023-01-04 07:35:16 +01:00
|
|
|
remote.push(":%s" % other_tag.path, kill_after_timeout=10.0)
|
2019-03-15 14:45:17 +01:00
|
|
|
|
|
|
|
- @skipIf(HIDE_WINDOWS_FREEZE_ERRORS, "FIXME: Freezes!")
|
2023-01-04 07:35:16 +01:00
|
|
|
+ #@skipIf(HIDE_WINDOWS_FREEZE_ERRORS, "FIXME: Freezes!")
|
2019-03-15 14:45:17 +01:00
|
|
|
+ @skipIf(os.environ.get('SKIP_LOCALHOST', 'false') == 'true', 'git-daemon connection error')
|
2023-01-04 07:35:16 +01:00
|
|
|
@with_rw_and_rw_remote_repo("0.1.6")
|
2019-03-15 14:45:17 +01:00
|
|
|
def test_base(self, rw_repo, remote_repo):
|
|
|
|
num_remotes = 0
|
2023-01-04 07:35:16 +01:00
|
|
|
@@ -681,6 +683,7 @@ class TestRemote(TestBase):
|
2019-03-15 14:45:17 +01:00
|
|
|
# will raise fatal: Will not delete all non-push URLs
|
2020-04-02 11:46:33 +02:00
|
|
|
self.assertRaises(GitCommandError, remote.delete_url, test3)
|
2019-03-15 14:45:17 +01:00
|
|
|
|
|
|
|
+ @skipIf(os.environ.get('SKIP_GITHUB', 'false') == 'true', 'GitHub connection error')
|
|
|
|
def test_fetch_error(self):
|
2023-01-04 07:35:16 +01:00
|
|
|
rem = self.rorepo.remote("origin")
|
2019-09-24 11:13:23 +02:00
|
|
|
with self.assertRaisesRegex(GitCommandError, "[Cc]ouldn't find remote ref __BAD_REF__"):
|
2023-09-05 09:56:45 +02:00
|
|
|
Index: GitPython-3.1.34.1693646983.2a2ae77/test/test_repo.py
|
|
|
|
===================================================================
|
|
|
|
--- GitPython-3.1.34.1693646983.2a2ae77.orig/test/test_repo.py
|
|
|
|
+++ GitPython-3.1.34.1693646983.2a2ae77/test/test_repo.py
|
2023-05-11 19:33:37 +02:00
|
|
|
@@ -250,6 +250,7 @@ class TestRepo(TestBase):
|
|
|
|
except UnicodeEncodeError:
|
|
|
|
self.fail("Raised UnicodeEncodeError")
|
|
|
|
|
|
|
|
+ @skipIf(os.environ.get('SKIP_GITHUB', 'false') == 'true', 'Gitlab connection error')
|
|
|
|
@with_rw_directory
|
2023-09-05 09:56:45 +02:00
|
|
|
@skip("the referenced repository was removed, and one needs to setup a new password controlled repo under the orgs control")
|
2023-05-11 19:33:37 +02:00
|
|
|
def test_leaking_password_in_clone_logs(self, rw_dir):
|
2023-09-05 09:56:45 +02:00
|
|
|
Index: GitPython-3.1.34.1693646983.2a2ae77/test/test_submodule.py
|
|
|
|
===================================================================
|
|
|
|
--- GitPython-3.1.34.1693646983.2a2ae77.orig/test/test_submodule.py
|
|
|
|
+++ GitPython-3.1.34.1693646983.2a2ae77/test/test_submodule.py
|
2023-01-04 07:35:16 +01:00
|
|
|
@@ -453,14 +453,15 @@ class TestSubmodule(TestBase):
|
|
|
|
reason="Cygwin GitPython can't find submodule SHA",
|
|
|
|
raises=ValueError
|
|
|
|
)
|
|
|
|
- @skipIf(
|
|
|
|
- HIDE_WINDOWS_KNOWN_ERRORS,
|
|
|
|
- """
|
2020-04-02 13:14:31 +02:00
|
|
|
- File "C:\\projects\\gitpython\\git\\cmd.py", line 559, in execute
|
|
|
|
- raise GitCommandNotFound(command, err)
|
|
|
|
- git.exc.GitCommandNotFound: Cmd('git') not found due to: OSError('[WinError 6] The handle is invalid')
|
2023-01-04 07:35:16 +01:00
|
|
|
- cmdline: git clone -n --shared -v C:\\projects\\gitpython\\.git Users\\appveyor\\AppData\\Local\\Temp\\1\\tmplyp6kr_rnon_bare_test_root_module""",
|
|
|
|
- ) # noqa E501
|
|
|
|
+ #@skipIf(
|
|
|
|
+ # HIDE_WINDOWS_KNOWN_ERRORS,
|
|
|
|
+ # """
|
2020-04-02 13:14:31 +02:00
|
|
|
+ # File "C:\\projects\\gitpython\\git\\cmd.py", line 559, in execute
|
|
|
|
+ # raise GitCommandNotFound(command, err)
|
|
|
|
+ # git.exc.GitCommandNotFound: Cmd('git') not found due to: OSError('[WinError 6] The handle is invalid')
|
2023-01-04 07:35:16 +01:00
|
|
|
+ # cmdline: git clone -n --shared -v C:\\projects\\gitpython\\.git Users\\appveyor\\AppData\\Local\\Temp\\1\\tmplyp6kr_rnon_bare_test_root_module""",
|
|
|
|
+ #) # noqa E501
|
2020-04-02 13:14:31 +02:00
|
|
|
+ @skipIf(os.environ.get('SKIP_LOCALHOST', 'false') == 'true', 'git-daemon connection error')
|
2023-01-04 07:35:16 +01:00
|
|
|
@with_rw_repo(k_subm_current, bare=False)
|
2020-04-02 13:14:31 +02:00
|
|
|
def test_root_module(self, rwrepo):
|
|
|
|
# Can query everything without problems
|
2023-01-04 07:35:16 +01:00
|
|
|
@@ -802,6 +803,7 @@ class TestSubmodule(TestBase):
|
2020-04-02 13:14:31 +02:00
|
|
|
# "FIXME: helper.wrapper fails with: PermissionError: [WinError 5] Access is denied: "
|
|
|
|
# "'C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\test_work_tree_unsupportedryfa60di\\master_repo\\.git\\objects\\pack\\pack-bc9e0787aef9f69e1591ef38ea0a6f566ec66fe3.idx") # noqa E501
|
|
|
|
@with_rw_directory
|
|
|
|
+ @skipIf(os.environ.get('SKIP_LOCALHOST', 'false') == 'true', 'git-daemon connection error')
|
|
|
|
def test_git_submodule_compatibility(self, rwdir):
|
2023-01-04 07:35:16 +01:00
|
|
|
parent = git.Repo.init(osp.join(rwdir, "parent"))
|
|
|
|
sm_path = join_path_native("submodules", "intermediate", "one")
|
|
|
|
@@ -887,6 +889,7 @@ class TestSubmodule(TestBase):
|
2020-04-02 13:14:31 +02:00
|
|
|
# end for each dry-run mode
|
|
|
|
|
|
|
|
@with_rw_directory
|
|
|
|
+ @skipIf(os.environ.get('SKIP_LOCALHOST', 'false') == 'true', 'git-daemon connection error')
|
|
|
|
def test_remove_norefs(self, rwdir):
|
2023-01-04 07:35:16 +01:00
|
|
|
parent = git.Repo.init(osp.join(rwdir, "parent"))
|
|
|
|
sm_name = "mymodules/myname"
|