From 493f9341040fbc65c8983c483acdc55f2bd11adb Mon Sep 17 00:00:00 2001 From: No big deal <69958306+alex20230721@users.noreply.github.com> Date: Fri, 4 Oct 2024 10:50:00 +0800 Subject: [PATCH 1/5] Update base.py --- git/repo/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git/repo/base.py b/git/repo/base.py index 346248ddb..6af680850 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -182,7 +182,7 @@ def __init__( The path to either the root git directory or the bare git repo:: repo = Repo("/Users/mtrier/Development/git-python") - repo = Repo("/Users/mtrier/Development/git-python.git") + repo = Repo("/Users/mtrier/Development/git-python/.git") repo = Repo("~/Development/git-python.git") repo = Repo("$REPOSITORIES/Development/git-python.git") repo = Repo(R"C:\Users\mtrier\Development\git-python\.git") From b4a0e1a59a36149d2d293b3fee75ead4e27a2742 Mon Sep 17 00:00:00 2001 From: No big deal <69958306+alex20230721@users.noreply.github.com> Date: Sat, 5 Oct 2024 17:03:20 +0800 Subject: [PATCH 2/5] Update base.py --- git/repo/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git/repo/base.py b/git/repo/base.py index 6af680850..f05dcaec8 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -179,10 +179,10 @@ def __init__( R"""Create a new :class:`Repo` instance. :param path: - The path to either the root git directory or the bare git repo:: + The path to either the root git directory, the .git directory under the root git directory or the bare git repo:: repo = Repo("/Users/mtrier/Development/git-python") - repo = Repo("/Users/mtrier/Development/git-python/.git") + repo = Repo("/Users/mtrier/Development/git-python.git") repo = Repo("~/Development/git-python.git") repo = Repo("$REPOSITORIES/Development/git-python.git") repo = Repo(R"C:\Users\mtrier\Development\git-python\.git") From de881fc8fc70fd11707cf4107e014c2654b8f745 Mon Sep 17 00:00:00 2001 From: No big deal <69958306+alex20230721@users.noreply.github.com> Date: Sat, 5 Oct 2024 17:11:04 +0800 Subject: [PATCH 3/5] Update base.py --- git/repo/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/git/repo/base.py b/git/repo/base.py index f05dcaec8..6cbc900b3 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -179,7 +179,8 @@ def __init__( R"""Create a new :class:`Repo` instance. :param path: - The path to either the root git directory, the .git directory under the root git directory or the bare git repo:: + The path to either the root git directory, the .git directory under the root git directory + or the bare git repo:: repo = Repo("/Users/mtrier/Development/git-python") repo = Repo("/Users/mtrier/Development/git-python.git") From aa74f873a351b8c0bb4cddf07cc28091f8bc759e Mon Sep 17 00:00:00 2001 From: No big deal <69958306+alex20230721@users.noreply.github.com> Date: Sat, 5 Oct 2024 17:12:31 +0800 Subject: [PATCH 4/5] Update base.py --- git/repo/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git/repo/base.py b/git/repo/base.py index 6cbc900b3..0769622cf 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -179,7 +179,7 @@ def __init__( R"""Create a new :class:`Repo` instance. :param path: - The path to either the root git directory, the .git directory under the root git directory + The path to either the root git directory, the .git directory under the root git directory or the bare git repo:: repo = Repo("/Users/mtrier/Development/git-python") From 629597a610da2922f32bba28bb01862bff6b060e Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sat, 5 Oct 2024 11:21:30 +0200 Subject: [PATCH 5/5] Update git/repo/base.py --- git/repo/base.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/git/repo/base.py b/git/repo/base.py index 0769622cf..db89cdf41 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -179,8 +179,7 @@ def __init__( R"""Create a new :class:`Repo` instance. :param path: - The path to either the root git directory, the .git directory under the root git directory - or the bare git repo:: + The path to either the worktree directory or the .git directory itself:: repo = Repo("/Users/mtrier/Development/git-python") repo = Repo("/Users/mtrier/Development/git-python.git")