mass_git_clone 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb092e9b18bec254cd426940d49b95600ffbd23ff549f5baee27e3c41cdd8e40
4
- data.tar.gz: 5e73ba35f65106cda87d2f78679fef93d9fe4badcf141f9ef38f9fc4d54a0626
3
+ metadata.gz: 6b969ea7231a35d1bbc9c4187a44b7e055d65c0262e6c020487b9bf13fe07ed3
4
+ data.tar.gz: 4de02c059fe9468eb88f2fb137ada652845c488291e32cd867d52abe0e6bb7e2
5
5
  SHA512:
6
- metadata.gz: fcf74cf540f0af2fb833a57ee6161c6879e575e2fdaf33ef989f159a8393af900a2bc0261f40d80237a5c2c5d28e3644c9ebf01f96efbc18f4e8c22bfc637c11
7
- data.tar.gz: feceed95021732b251ff1b411b4e03787e1801b1db9acda9fdcfda8aa9c1491aefe2e493da196dade95678b491ba663b97b5de4427e9703a6c8fb5e8849e6d0b
6
+ metadata.gz: 907e419f6787819d380ea3ea400e05b94e8bb8c5f6f2588ebea3461e7f004c5f90962c23405991a7ee4f17e0224737e13e86e7a83f5a112444d0aac77cb12fc5
7
+ data.tar.gz: 5c3ccf37dd923e7578aa3516552fc89f7ce60a0b074293878e5949b34ee058fb64ad2c784185e2e6700f57ba17092474161a89b83973ed08c9b22722a93c87b1
@@ -35,7 +35,10 @@ def update_repo(repo_url)
35
35
  if Dir.exist?(dir_name)
36
36
  prefixed_puts "Updating #{dir_name}..."
37
37
 
38
+ run "git", "-C", dir_name, "stash", "-u", "--quiet", "-m", "autostashed by mass_git_clone"
39
+
38
40
  run "git", "-C", dir_name, "remote", "set-url", "origin", repo_url
41
+ run "git", "-C", dir_name, "remote", "set-head", "origin", "-a"
39
42
 
40
43
  default_branch =
41
44
  File.basename(
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "mass_git_clone"
8
- spec.version = "0.1.0"
8
+ spec.version = "0.2.0"
9
9
  spec.authors = ["Discourse Team"]
10
10
 
11
11
  spec.summary = %q{Tool for maintaining clones of a large number of git repositories}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mass_git_clone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Discourse Team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-26 00:00:00.000000000 Z
11
+ date: 2023-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel
@@ -95,7 +95,7 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  description: Tool for maintaining clones of a large number of git repositories
98
- email:
98
+ email:
99
99
  executables:
100
100
  - mass_git_clone
101
101
  extensions: []
@@ -116,7 +116,7 @@ homepage: https://github.com/discourse/mass_git_clone
116
116
  licenses:
117
117
  - MIT
118
118
  metadata: {}
119
- post_install_message:
119
+ post_install_message:
120
120
  rdoc_options: []
121
121
  require_paths:
122
122
  - lib
@@ -131,8 +131,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  - !ruby/object:Gem::Version
132
132
  version: '0'
133
133
  requirements: []
134
- rubygems_version: 3.3.26
135
- signing_key:
134
+ rubygems_version: 3.1.6
135
+ signing_key:
136
136
  specification_version: 4
137
137
  summary: Tool for maintaining clones of a large number of git repositories
138
138
  test_files: []