diff options
author | Bryan Newbold <bnewbold@animus.robocracy.org> | 2008-08-11 18:06:52 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@animus.robocracy.org> | 2008-08-11 18:06:52 -0700 |
commit | 62dcf136d5b71c0b4d5744ec3551ce82edcc2a94 (patch) | |
tree | 5fa3d92c424611af3038f3080a8ae1b47e83cce0 /bn_django | |
parent | 9cd5c5ffb6f9be95964e152baad5ec703231c2fb (diff) | |
download | bnewnet-62dcf136d5b71c0b4d5744ec3551ce82edcc2a94.tar.gz bnewnet-62dcf136d5b71c0b4d5744ec3551ce82edcc2a94.zip |
fixed a parent issue
Diffstat (limited to 'bn_django')
-rw-r--r-- | bn_django/git_wiki/models.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bn_django/git_wiki/models.py b/bn_django/git_wiki/models.py index ba0f5c9..2614739 100644 --- a/bn_django/git_wiki/models.py +++ b/bn_django/git_wiki/models.py @@ -151,6 +151,10 @@ class Commit(models.Model): if raw[1].startswith('parent'): self.parenthash = raw[1][6:].strip() raw.pop(1) + # Sometimes there are multiple parents; this ignores all but the + # first + while raw[1].startswith('parent'): + raw.pop(1) self.author = raw[1].split()[1] self.author_date = time.ctime(int(raw[1].split()[-2])) self.committer = raw[2].split()[1] |