Skip to content

Commit

Permalink
Disable recording commits on every sync for now
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Mar 19, 2024
1 parent 56f77d7 commit 6120c70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ def count_commits
Dir.mktmpdir do |dir|
repo = clone_repository(dir)
counts = count_commits_internal(dir)
commit_hashes = fetch_commits_internal(repo)
Commit.upsert_all(commit_hashes) unless commit_hashes.empty?
# commit_hashes = fetch_commits_internal(repo)
# Commit.upsert_all(commit_hashes) unless commit_hashes.empty?
update(counts)
end
rescue => e
Expand Down

0 comments on commit 6120c70

Please sign in to comment.