Skip to content

Commit

Permalink
Fix error "unknown key: :user" at GitRepository#commits.
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenk committed Aug 13, 2016
1 parent 1a3ca2a commit 2c3f0f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/ontology_saver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def suspended_save_ontologies(options={})
versions = []
commits_count = 0
highest_change_file_count = 0
user = options.delete(:user)
repository.walk_commits(options) { |commit|
commits_count += 1
current_file_count = 0
Expand All @@ -43,15 +44,15 @@ def suspended_save_ontologies(options={})
mark_ontology_as_having_file(f.path, has_file: true)
ontology_version_options = OntologyVersionOptions.new(
f.path,
options.delete(:user),
user,
fast_parse: repository.has_changed?(f.path, commit.oid))
versions << save_ontology(commit.oid, ontology_version_options,
changed_files: changed_files,
do_parse: false)
elsif f.renamed?
ontology_version_options = OntologyVersionOptions.new(
f.path,
options.delete(:user),
user,
fast_parse: repository.has_changed?(f.path, commit.oid),
previous_filepath: f.delta.old_file[:path])
versions << save_ontology(commit.oid, ontology_version_options,
Expand Down

0 comments on commit 2c3f0f0

Please sign in to comment.