Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3cda530

Browse files
committed
removed try/except and updated sample url
1 parent9833655 commit3cda530

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

‎doc/source/quickstart.rst

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,10 @@ def test_init_repo_object(self, path_to_dir):
1818
fromgitimportRepo
1919

2020
repo=Repo.init(path_to_dir)# git init path/to/dir
21-
assertrepo.__class__isRepo# 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-
importgit
26-
27-
try:
28-
repo=Repo(path_to_dir)
29-
exceptgit.NoSuchPathError:
30-
assertFalse,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)

[8]ページ先頭

©2009-2025 Movatter.jp