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

Commit8df3dd9

Browse files
committed
fix(remote): improve version check
Make version check much more readable, and fix it atthe same time. The previous implementation would assumeprogress is supported just by looking at the patch-levelfor instance.A quick check of the git sources seems to indicate the--progress flag exists in v1.7 of the git command-linealready.Fixesgitpython-developers#449
1 parent2972481 commit8df3dd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎git/remote.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ def add_progress(kwargs, git, progress):
5050
given, we do not request any progress
5151
:return: possibly altered kwargs"""
5252
ifprogressisnotNone:
53-
v=git.version_info
54-
ifv[0]>1orv[1]>7orv[2]>0orv[3]>3:
53+
v=git.version_info[:2]
54+
ifv>= (1,7):
5555
kwargs['progress']=True
5656
# END handle --progress
5757
# END handle progress

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp