Patch #22798 » 0001-filter-list-of-previous-git-heads-to-exclude-those-t.patch
| app/models/repository/git.rb | ||
|---|---|---|
|
merge_extra_info(h)
|
||
|
self.save
|
||
|
end
|
||
|
prev_db_heads = scm.filter_heads prev_db_heads
|
||
|
save_revisions(prev_db_heads, repo_heads)
|
||
|
end
|
||
| lib/redmine/scm/adapters/git_adapter.rb | ||
|---|---|---|
|
nil
|
||
|
end
|
||
|
# returns a new heads array with non-existant revisions removed
|
||
|
def filter_heads(heads)
|
||
|
heads.reject{ |h| cat('', h).nil? }
|
||
|
end
|
||
|
def revisions(path, identifier_from, identifier_to, options={})
|
||
|
revs = Revisions.new
|
||
|
cmd_args = %w|log --no-color --encoding=UTF-8 --raw --date=iso --pretty=fuller --parents --stdin|
|
||