You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
마누엘 fe60ca408b routers/repo/release: Use correct branch reference (#3330)
When calculating the current behind commit count the calculation should
use the current release target to get the total commit count. Should the
release target not exist anymore the calculation will return zero for
the newest release on that target. Older releases on that target will then
use that calculated commit count as reference.

The only use case that is now somehow invalid is when the release target
was merged / deleted after a tag on that release target:

    master 1 - - - - - - - 6
            \             /
    branch   2 - 3 - 4 - 5

When `4` is the last tag on branch `branch` and the branch `branch` is not
yet deleted the calculated numbers would be:

    1 commits to branch since this release

Now if the branch `branch` gets deleted the calculation function will not
find the branch and use the commit count of the newest release (`4`) as
reference resulting in:

    0 commit to branch since this release

This fixes #3326
8 years ago
..
branch.go Rename module: middleware -> context 8 years ago
commit.go Re-work MAX_DIFF_LINES: supress diff per file, not the whole diff (#3174) 8 years ago
download.go Set utf-8 charset for text files when serving raw content (#2898) 8 years ago
http.go Refactor User.Id to User.ID 8 years ago
issue.go routers/repo/issue: remove redundant format string 8 years ago
pull.go Refactor User.Id to User.ID 8 years ago
release.go routers/repo/release: Use correct branch reference (#3330) 8 years ago
repo.go Refactor User.Id to User.ID 8 years ago
setting.go Refactor User.Id to User.ID 8 years ago
view.go Use struct for UI settings 8 years ago
webhook.go Refactor User.Id to User.ID 8 years ago
wiki.go Do not show filename not have suffifx .md 8 years ago