Sha256: b0aa249fa4dfec1870abe4d983b0fe3eaf695bba0fce55d9f22c3ff70e03e869
Contents?: true
Size: 499 Bytes
Versions: 6
Compression:
Stored size: 499 Bytes
Contents
#!/usr/bin/env ruby require "bundler/inline" gemfile do source "https://rubygems.org" gem "multi_repo", require: "multi_repo/cli", path: File.expand_path("..", __dir__) end opts = Optimist.options do synopsis "Fetch all repos." opt :checkout, "Branch to checkout after fetching.", :type => :string MultiRepo::CLI.common_options(self, :except => :dry_run) end MultiRepo::CLI.each_repo(**opts) do |repo| repo.git.fetch repo.git.hard_checkout(opts[:checkout]) if opts[:checkout] end
Version data entries
6 entries across 6 versions & 1 rubygems