git-multirepo 1.0.0.beta1 → 1.0.0.beta3

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
  SHA1:
3
- metadata.gz: d610a188dbbbaca809a697879cf909120e321965
4
- data.tar.gz: 36431ca075fedca8e43cb00eb2c895c253920a9e
3
+ metadata.gz: 41e47d03eba5e760c151e04bfcb7a3301a19c964
4
+ data.tar.gz: 4c851995c6891c658e9f3214aa8ed1e26cedc1e8
5
5
  SHA512:
6
- metadata.gz: 2e2f18b479298e1eeb135882b07fd6dad6dcc5338746f3096c0821a58d07a150c91121eb1285ad4b8eb5bf88bd4a56ba487fcbd8d99dca6ccabbda280da02e3d
7
- data.tar.gz: 13f716a3bd918525167642d6dd87d6bfe413669fb66f3a0b208ac01f6fc93171478fa696af23a8601732b54e53f583126c55dd6858c11f71029f995f809a41ea
6
+ metadata.gz: 94ce390a9c7dd25481619d3236d3fd18f0a7edc8b40a6210e09a5a531649839adf2b9f0dfd06025d758823464a83d8f11f18cd93b7873542d4b0087553e534f4
7
+ data.tar.gz: 95d8231b95904970179a1e7c68f831bcd8fad7fc7281d14e0bf8f05a84f00a72153c09e4a4385ab536f49463354a332077d26a52641619bfffef41a7d3468f4a
data/lib/info.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module MultiRepo
2
2
  NAME = "git-multirepo"
3
- VERSION = "1.0.0.beta1"
3
+ VERSION = "1.0.0.beta3"
4
4
  DESCRIPTION = "Track multiple Git repositories side-by-side."
5
5
  end
@@ -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)
@@ -28,7 +28,7 @@ module MultiRepo
28
28
  end
29
29
 
30
30
  def changes
31
- output = Git.run_in_working_dir(@path, "status --porcelain", false)
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.beta1
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.0.14
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