From 2987ae27cb87fde7f4605ebadf90a5dc75c18cf5 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 8 Jun 2014 22:48:53 -0400 Subject: [PATCH] Sadface. --- bitshift/crawler/indexer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitshift/crawler/indexer.py b/bitshift/crawler/indexer.py index 5f726c5..529a964 100644 --- a/bitshift/crawler/indexer.py +++ b/bitshift/crawler/indexer.py @@ -215,12 +215,12 @@ class GitIndexer(threading.Thread): for parent in commit.parents: 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: continue update_entry(commit, files[paths[pth]], diff.new_file) if diff.renamed: - paths[diff.renamed_from] = paths[pth] + paths[diff.rename_from] = paths[pth] del paths[pth] pending = [(head, {path: path for path in files})]