Skip to content

Ignore newlines in Gitaly versions

Yorick Peterse requested to merge gitaly-version-whitespace into master

Tracking of deployments could fail if the GITALY_SERVER_VERSION file contained a trailing newline, as this was not removed when reading it. We fix this by explicitly removing any leading and trailing whitespace when reading a version from this file.

This fixes errors such as the one seen in https://sentry.gitlab.net/gitlab/release-tools/issues/1689650/.

Merge request reports