diff options
author | Stan Hu <stanhu@gmail.com> | 2016-08-29 17:46:30 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-09-01 10:08:23 +0300 |
commit | d326d3428da89b943bb5f1d4d396f21b3e999ff7 (patch) | |
tree | 218de7018f84bd040671f6fd87b4b760d363f63f /CHANGELOG | |
parent | 1c4e866348e0c782d2e5374209508785ac812c7a (diff) |
Optimize branch lookups and force a repository reload for Repository#find_branch
If `git gc` runs and `Repository` has an instance to `Rugged::Repository`, a
bug in libgit2 may cause the instance to return a stale value or a missing
branch. This change not only optimizes the branch lookup so we don't have
to iterate through every branch, but it also works around the `git gc`
issue by forcing a repository reload every time `Repository#find_branch`
is called.
See: https://github.com/libgit2/libgit2/issues/1534
Closes #15392, #21470
Diffstat (limited to 'CHANGELOG')
-rw-r--r-- | CHANGELOG | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG index 9837b2edb9d..9ab32684de6 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -60,6 +60,9 @@ v 8.12.0 (unreleased) - User can edit closed MR with deleted fork (Katarzyna Kobierska Ula Budziszewska) !5496 - Fixed invisible scroll controls on build page on iPhone +v 8.11.5 (unreleased) + - Optimize branch lookups and force a repository reload for Repository#find_branch + v 8.11.4 (unreleased) - Fix broken gitlab:backup:restore because of bad permissions on repo storage !6098 (Dirk Hörner) - Fix sorting issues by "last updated" doesn't work after import from GitHub |