Skip to content

Commit 3cda530

Browse files
committed
removed try/except and updated sample url
1 parent 9833655 commit 3cda530

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

‎doc/source/quickstart.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Clone from URL
3838

3939
For the rest of this tutorial we will use a clone from https://github.com/LeoDaCoda/GitPython-TestFileSys.git
4040

41-
git clone https://some_repo_url
41+
$ git clone https://github.com/gitpython-developers/QuickStartTutorialFiles.git
4242

4343
.. literalinclude:: ../../test/test_quick_doc.py
4444
:language: python

‎test/test_quick_doc.py

+2-8
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,10 @@ def test_init_repo_object(self, path_to_dir):
1818
from git import Repo
1919

2020
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]
21+
# ![1-test_init_repo_object]
2322

2423
# [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}"
24+
repo = Repo(path_to_dir)
3125
# ![2-test_init_repo_object]
3226

3327
@with_rw_directory

0 commit comments

Comments
 (0)