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

Commitb7ae99c

Browse files
committed
Fixed implementation of _version_info which didn't work for python 2.4 thanks to the rpartition method. omg
1 parenta7ff2f0 commitb7ae99c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎git/cmd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def __getattr__(self, name):
224224
def_set_cache_(self,attr):
225225
ifattr=='_version_info':
226226
# We only use the first 4 numbers, as everthing else could be strings in fact (on windows)
227-
version_numbers=self._call_process('version').rpartition(' ')[2]
227+
version_numbers=self._call_process('version').split(' ')[2]
228228
self._version_info=tuple(int(n)forninversion_numbers.split('.')[:4])
229229
else:
230230
super(Git,self)._set_cache_(attr)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp