gitbulk 0.0.2.134741 → 0.0.2.134791

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/bin/gitbulk +7 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a7bb2ee8c9dd947e3887a78ac5e3921d3899787cd1877cef5800746ebae0426
4
- data.tar.gz: 572f89c47b6e4a135c20b9003ced7ed2be87bfded951c2ff15dcb120a5706044
3
+ metadata.gz: f5c03ef62e25a53ea023523a020655f3423dd251029f88b58dd00cb651f4944a
4
+ data.tar.gz: da52e5cd6b838ed7da24705dd755e2cf3998c23bf7d11b083b11ad353c7ea6bc
5
5
  SHA512:
6
- metadata.gz: e57a8d23cb854dfbd065a266388a6db030a79b73c142638e3d3e28d4e1dfdf5d34ca739b1c58035d76d57f31f1d392375552b796fcfbc576759ab396d96309e9
7
- data.tar.gz: 26acdcd253c305eb7a333092b1daba8977a0f17bb08d77ab495206e43226e07f2a9f272c5ff6ff6e6432fac15950ec9376534141d529d9c2ac045bebe0a42356
6
+ metadata.gz: 7f6d48f0dbcfd87fddcb8ef42d5e062ab3c8e6379b33ae2ec0f952ec3371ac9014f03933cf6775907b9539a6acfc9d805dde60637eb8e29e0d17c8eba35a8637
7
+ data.tar.gz: dfb6b8e5a04cd428357f13796b75537657786c21cd35a1845a53243bd43108abed24288030b3cc525fa9bdf8a193e708be9d7ff634595ee8594744d9bb84d53c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitbulk (0.0.2.134741)
4
+ gitbulk (0.0.2.134791)
5
5
  activesupport (~> 6.0)
6
6
  colorize
7
7
  fileutils
data/bin/gitbulk CHANGED
@@ -60,6 +60,8 @@ logger = Gitbulk::Util.logger
60
60
 
61
61
  FileUtils.mkdir_p(File.expand_path(config['workdir']))
62
62
 
63
+ $exit_with_error = 0
64
+
63
65
  Dir.chdir(config['workdir']) do |_dir|
64
66
  config['repositories'].shuffle.each do |repo|
65
67
  git = repo['git']
@@ -71,10 +73,10 @@ Dir.chdir(config['workdir']) do |_dir|
71
73
  repo['mirrors'].shuffle.each do |mirror|
72
74
  logger.info "Pushing to #{mirror}".colorize(:blue)
73
75
 
74
- #cmd = "git push --mirror #{mirror}"
76
+ # cmd = "git push --mirror #{mirror}"
75
77
  cmd = "git push --all #{mirror}"
76
78
  if @opts[:dryrun]
77
- logger.tagged("DRYRUN") { logger.info cmd }
79
+ logger.tagged('DRYRUN') { logger.info cmd }
78
80
  else
79
81
  Gitbulk::Util.cmd!(cmd)
80
82
  end
@@ -82,7 +84,10 @@ Dir.chdir(config['workdir']) do |_dir|
82
84
  end
83
85
 
84
86
  rescue StandardError => e
87
+ $exit_with_error = 1
85
88
  logger.error "Exception: #{e.inspect}".colorize(:light_red)
86
89
  end
87
90
  end
88
91
 
92
+ exit($exit_with_error)
93
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitbulk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.134741
4
+ version: 0.0.2.134791
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samoilenko Yuri