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

gitaly-proto-tagged « _support - gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 730c3c41ea7930797bb97db1dafadeed0c7a1760 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env ruby
# frozen_string_literal: true

SOURCE = 'gitlab.com/gitlab-org/gitaly-proto'

proto_source = File.read('proto/SOURCE').chomp
if proto_source != SOURCE
  abort "gitaly-proto must be vendored from #{SOURCE}"
end

proto_revision = File.read('proto/REVISION')

# good: v1.2.3
# bad: v1.2.3-2019234234-a35478eff90
if proto_revision =~ /^v[0-9.]+$/
  puts 'OK'
  exit
end

abort 'error: no tagged version of gitaly-proto found in proto/'