Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Cai <jcai@gitlab.com>2020-03-12 23:46:05 +0300
committerJohn Cai <jcai@gitlab.com>2020-03-13 04:45:35 +0300
commit8f8033f11ec343a2314644479134d33852955044 (patch)
treebdb17ddf1ec0e720963d4bdfafd3f09d30982ca0
parent65afbb65c1aad1bd082f3e896519da36eef4ec52 (diff)
fix gem publish script to handle prerelease gem name
When a tag with -rc* is published, gem build will insert a ".pre" into the gem file name. The script does not expect this. This will fix that.
-rwxr-xr-x_support/publish-gem2
1 files changed, 1 insertions, 1 deletions
diff --git a/_support/publish-gem b/_support/publish-gem
index b2256814f..f0a1b138e 100755
--- a/_support/publish-gem
+++ b/_support/publish-gem
@@ -20,8 +20,8 @@ def main(tag)
puts 'Testing for staged changes'
run!(%w[git diff --quiet --cached --exit-code])
- run!(%w[gem build gitaly.gemspec])
gem = "gitaly-#{version}.gem"
+ run!(['gem', 'build', 'gitaly.gemspec', '--output', gem])
abort "gem not found: #{gem}" unless File.exist?(gem)
puts "Proceed to publish version #{tag}? Enter 'Yes' to continue; Ctrl-C to abort"