瀏覽代碼

Another bugfix.

tags/v1.0^2
Ben Kurtovic 10 年之前
父節點
當前提交
4c34055849
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      bitshift/crawler/indexer.py

+ 1
- 1
bitshift/crawler/indexer.py 查看文件

@@ -199,7 +199,7 @@ class GitIndexer(threading.Thread):
def _walk_history(self, files, head):
"""Walk a repository's history for metadata."""
def update_entry(commit, entry, new_file):
entry.add(commit.author.name)
entry["authors"].add(commit.author.name)
commit_ts = datetime.utcfromtimestamp(commit.committed_date)
if commit_ts > entry["time_last_modified"]:
entry["time_last_modified"] = commit_ts


Loading…
取消
儲存