changeset 83:f8f975c73ed0

time is not necessary 10 bytes length data taken from Linus kernel source: === tree 11765faf4a761388e012ed4ef3be453336594598 parent e0d5dab24deac859b1b2326c4ad0745572d16d10 author Ursula Braun <braunu@de.ibm.com> 1 +0100 committer Jeff Garzik <jeff@garzik.org> 1192849202 -0400 qeth: remove header_ops bug Remove qeth bug caused by commit: [NET]: Move hardware header operations out of netdevice. Signed-off-by: Ursula Braun <braunu@de.ibm.com> Signed-off-by: Jeff Garzik <jeff@garzik.org> ===
author Scott Chacon <schacon@gmail.com>
date Fri, 08 May 2009 11:33:39 -0700
parents 64f451f2d50a
children 81b78a91f2f5
files dulwich/objects.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dulwich/objects.py
+++ b/dulwich/objects.py
@@ -467,7 +467,7 @@
             assert text[count] == ' ', "Invalid commit object, " \
                  "author information must be followed by space not %s" % text[count]
             count += 1
-            self._author_time = int(text[count:count+10])
+            self._author_time = int(text[count:].split(" ", 1)[0])
             while text[count] != ' ':
                 count += 1
             self._author_timezone = int(text[count:count+6])