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

vendor-gitaly-proto « _support - gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fc4c36f5121874fd4568b11dccac070a7a162410 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env ruby
require 'optparse'
require_relative 'run'

PROGNAME = 'vendor-gitaly-proto'
USAGE = "Usage: #{PROGNAME} [--fork GITALY_PROTO_FORK_REPO] REVISION"
ORIGIN = 'gitlab.com/gitlab-org/gitaly-proto'

def main(revision, repo:)
  run!(%W[govendor fetch #{ORIGIN}/go::#{repo}/go@#{revision}])
end

options = ARGV.getopts(nil, 'fork:')
abort USAGE unless ARGV.count == 1

main(ARGV.first, repo: options['fork'] || ORIGIN)