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

Commitc4c6851

Browse files
committed
fix(refs): don't raise StopIteration
Fixes#394
1 parentc877794 commitc4c6851

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

‎.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
*.py[co]
22
*.swp
33
*~
4+
.venv/
45
/*.egg-info
56
/lib/GitPython.egg-info
67
cover/

‎git/refs/symbolic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def _iter_packed_refs(cls, repo):
108108
yieldtuple(line.split(' ',1))
109109
# END for each line
110110
except (OSError,IOError):
111-
raiseStopIteration
111+
return
112112
# END no packed-refs file handling
113113
# NOTE: Had try-finally block around here to close the fp,
114114
# but some python version woudn't allow yields within that.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp