There was an error while loading. Please reload this page.
1 parent 9833655 commit 3cda530Copy full SHA for 3cda530
2 files changed
doc/source/quickstart.rst
@@ -38,7 +38,7 @@ Clone from URL
38
39
For the rest of this tutorial we will use a clone from https://github.com/LeoDaCoda/GitPython-TestFileSys.git
40
41
-git clone https://some_repo_url
+$ git clone https://github.com/gitpython-developers/QuickStartTutorialFiles.git
42
43
.. literalinclude:: ../../test/test_quick_doc.py
44
:language: python
test/test_quick_doc.py
@@ -18,16 +18,10 @@ def test_init_repo_object(self, path_to_dir):
18
from git import Repo
19
20
repo = Repo.init(path_to_dir) # git init path/to/dir
21
- assert repo.__class__ is Repo # Test to confirm repo was initialized
22
- # ![1-test_init_repo_object]
+ # ![1-test_init_repo_object]
23
24
# [2-test_init_repo_object]
25
- import git
26
-
27
- try:
28
- repo = Repo(path_to_dir)
29
- except git.NoSuchPathError:
30
- assert False, f"No such path {path_to_dir}"
+ repo = Repo(path_to_dir)
31
# ![2-test_init_repo_object]
32
33
@with_rw_directory
0 commit comments