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