Upgrade to Git v2.28.0.rc1

Git v2.28.0.rc1 has been released. As the v2.28.0 release series is the
first to contain support for the reference-transaction hook which is
currently a focus for Gitaly, this commit adds the release candidate
version so we can test the hook as part of Gitaly's CI.
This commit is contained in:
Patrick Steinhardt 2020-07-20 14:00:29 +02:00
parent 3c146e671a
commit 3e75b17a99
3 changed files with 15 additions and 1 deletions

View file

@ -97,11 +97,23 @@ function print_git_args() {
GIT_VERSION=2.27.0
GIT_DOWNLOAD_SHA256=77ded85cbe42b1ffdc2578b460a1ef5d23bcbc6683eabcafbb0d394dffe2e787
;;
2.28)
GIT_VERSION=2.28.0.rc1
GIT_DOWNLOAD_SHA256=f63afef021d710e930f2e4942323b3844fa75d423a7398daf3b1100eb5c8098d
;;
*) echo "Unknown git version $1"; exit 1;
esac
case "$GIT_VERSION" in
*.rc[0-9])
GIT_DOWNLOAD_URL=https://www.kernel.org/pub/software/scm/git/testing/git-${GIT_VERSION}.tar.gz;;
*)
GIT_DOWNLOAD_URL=https://www.kernel.org/pub/software/scm/git/git-${GIT_VERSION}.tar.gz;;
esac
printf -- "--build-arg GIT_VERSION=%s " "$GIT_VERSION"
printf -- "--build-arg GIT_DOWNLOAD_SHA256=%s " "$GIT_DOWNLOAD_SHA256"
printf -- "--build-arg GIT_DOWNLOAD_URL=%s " "$GIT_DOWNLOAD_URL"
}
# see https://github.com/git-lfs/git-lfs/releases