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 +4 -4
- data/lib/mass_git_clone.rb +3 -0
- data/mass_git_clone.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b969ea7231a35d1bbc9c4187a44b7e055d65c0262e6c020487b9bf13fe07ed3
|
4
|
+
data.tar.gz: 4de02c059fe9468eb88f2fb137ada652845c488291e32cd867d52abe0e6bb7e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 907e419f6787819d380ea3ea400e05b94e8bb8c5f6f2588ebea3461e7f004c5f90962c23405991a7ee4f17e0224737e13e86e7a83f5a112444d0aac77cb12fc5
|
7
|
+
data.tar.gz: 5c3ccf37dd923e7578aa3516552fc89f7ce60a0b074293878e5949b34ee058fb64ad2c784185e2e6700f57ba17092474161a89b83973ed08c9b22722a93c87b1
|
data/lib/mass_git_clone.rb
CHANGED
@@ -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(
|
data/mass_git_clone.gemspec
CHANGED
@@ -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.
|
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.
|
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-
|
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.
|
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: []
|