Browse Source

Sadface.

tags/v1.0^2
Ben Kurtovic 10 years ago
parent
commit
2987ae27cb
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      bitshift/crawler/indexer.py

+ 2
- 2
bitshift/crawler/indexer.py View File

@@ -215,12 +215,12 @@ class GitIndexer(threading.Thread):


for parent in commit.parents: for parent in commit.parents:
for diff in parent.diff(commit, create_patch=True): for diff in parent.diff(commit, create_patch=True):
pth = diff.renamed_to if diff.renamed else diff.b_blob.path
pth = diff.rename_to if diff.renamed else diff.b_blob.path
if pth not in paths: if pth not in paths:
continue continue
update_entry(commit, files[paths[pth]], diff.new_file) update_entry(commit, files[paths[pth]], diff.new_file)
if diff.renamed: if diff.renamed:
paths[diff.renamed_from] = paths[pth]
paths[diff.rename_from] = paths[pth]
del paths[pth] del paths[pth]


pending = [(head, {path: path for path in files})] pending = [(head, {path: path for path in files})]


Loading…
Cancel
Save