git-multirepo 1.0.0.beta1 → 1.0.0.beta3
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.
- checksums.yaml +4 -4
- data/lib/info.rb +1 -1
- data/lib/multirepo/git/git.rb +5 -0
- data/lib/multirepo/git/repo.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 41e47d03eba5e760c151e04bfcb7a3301a19c964
|
|
4
|
+
data.tar.gz: 4c851995c6891c658e9f3214aa8ed1e26cedc1e8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 94ce390a9c7dd25481619d3236d3fd18f0a7edc8b40a6210e09a5a531649839adf2b9f0dfd06025d758823464a83d8f11f18cd93b7873542d4b0087553e534f4
|
|
7
|
+
data.tar.gz: 95d8231b95904970179a1e7c68f831bcd8fad7fc7281d14e0bf8f05a84f00a72153c09e4a4385ab536f49463354a332077d26a52641619bfffef41a7d3468f4a
|
data/lib/info.rb
CHANGED
data/lib/multirepo/git/git.rb
CHANGED
|
@@ -18,6 +18,11 @@ module MultiRepo
|
|
|
18
18
|
run(full_command, show_output)
|
|
19
19
|
end
|
|
20
20
|
|
|
21
|
+
def self.run_in_working_dir_with_env_unset(path, git_command, show_output)
|
|
22
|
+
full_command = "unset $(git rev-parse --local-env-vars); git -C \"#{path}\" #{git_command}";
|
|
23
|
+
run(full_command, show_output)
|
|
24
|
+
end
|
|
25
|
+
|
|
21
26
|
def self.run(full_command, show_output)
|
|
22
27
|
Console.log_info(full_command) if Config.instance.verbose
|
|
23
28
|
result = Runner.run(full_command, show_output)
|
data/lib/multirepo/git/repo.rb
CHANGED
|
@@ -28,7 +28,7 @@ module MultiRepo
|
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
def changes
|
|
31
|
-
output = Git.
|
|
31
|
+
output = Git.run_in_working_dir_with_env_unset(@path, "status --porcelain", false)
|
|
32
32
|
lines = output.split("\n").each{ |f| f.strip }.delete_if{ |f| f == "" }
|
|
33
33
|
lines.map { |l| Change.new(l) }
|
|
34
34
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: git-multirepo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.0.
|
|
4
|
+
version: 1.0.0.beta3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michaël Fortin
|
|
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
169
169
|
version: 1.3.1
|
|
170
170
|
requirements: []
|
|
171
171
|
rubyforge_project:
|
|
172
|
-
rubygems_version: 2.
|
|
172
|
+
rubygems_version: 2.4.5
|
|
173
173
|
signing_key:
|
|
174
174
|
specification_version: 4
|
|
175
175
|
summary: Track multiple Git repositories side-by-side
|