vagrant-git-sync 1.0.2 → 1.0.3

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
- SHA1:
3
- metadata.gz: 409b8761a68ca658c76e47178da8ece7181b49cc
4
- data.tar.gz: 5dfcd9e9f3a3fd0e16fbcca03a679b452f4c55b8
2
+ SHA256:
3
+ metadata.gz: 996a85f6e43d3db41bad95810204b801c195ef46659035a43c16ba653c0bcb7c
4
+ data.tar.gz: e03b1ecb137dab57de9a687ff941f86593027c427e0a804e6b3632a7e7bd6517
5
5
  SHA512:
6
- metadata.gz: f6df86eed5953b8d7d71073912fbab6908c326c5bbd1af2e90d48d36d9d6c69901ab923a2c8fb8913d98887c01d398270b9bbbd5b55cf87d2a056ecde78aabb5
7
- data.tar.gz: e0c34d68a2fb5279d46e6ac3a73199025524ca28afce221fd3b22694adbaa0d56306b48e552706d96a02385c6908c8007c1dd64045e94e4194fc445e91c64301
6
+ metadata.gz: 97d1a13c6a01d9841380b3f5bd8f81e2ddc83062abd30d0a948718d938c4324f18458694d79aaa9da00b64d26315f25a70a8b2d4fefb075186196dd9923c4ed7
7
+ data.tar.gz: fff012b19d3bb9083f1df4365f3ba92341819696f5e172673ac8bd4e82df6bcf4263a59f751c874dd84395a9ee28567834fe12960f3ab3cab6dbc8d0b2abdabf
data/README.md CHANGED
@@ -8,7 +8,7 @@ We can eliminate this manual step by allowing Vagrant to reason about, and sync
8
8
  This requires some precaution that vagrant-git-sync manages for us:
9
9
 
10
10
  - Is a feature branch being worked on (Are we off master)? Is the index dirty? If so, we probably don't want to update, and introduce surprises to the developer. vagrant-git-sync handles these cases automatically, and tries to not get in the way. Currently a feature branch is detected if the local branch is not "master".
11
- - Do we have a stable internet connection? Can we reach the remote? vagrant-git-sync will try to bail out as early if it detects a less than steller connection. We don't want the plugin to introduce long pauses in workflow due to connectivity issues.
11
+ - Do we have a stable internet connection? Can we reach the remote? vagrant-git-sync will try to bail out as early as possible if it detects a less than steller connection. We don't want the plugin to introduce long pauses in workflow due to connectivity issues.
12
12
 
13
13
 
14
14
  vagrant-git-sync works by injecting middleware very early on in the Vagrant lifecycle. This allows us to update any Vagrant configuration (Vagrantfile, Puppet, Chef, etc) before configuration is actually loaded by Vagrant.
@@ -10,7 +10,12 @@ module VagrantGitSyncModule
10
10
  @env = env
11
11
  @vagrant_cwd = env[:env].cwd.to_s.strip.chomp('/')
12
12
  Dir.chdir(@vagrant_cwd) do
13
- in_work_tree = %x(git rev-parse --is-inside-work-tree 2> /dev/null).strip
13
+ in_work_tree = ""
14
+ if Vagrant::Util::Platform.windows? then
15
+ in_work_tree = %x(git rev-parse --is-inside-work-tree 2> $null).strip
16
+ else
17
+ in_work_tree = %x(git rev-parse --is-inside-work-tree 2> /dev/null).strip
18
+ end
14
19
  if in_work_tree == 'true' and Workspace.git_installed
15
20
  @unsupported_workspace = false
16
21
  else
@@ -53,7 +58,13 @@ module VagrantGitSyncModule
53
58
  end
54
59
 
55
60
  def self.git_installed
56
- not %x(which git).strip.empty?
61
+ result = ""
62
+ if Vagrant::Util::Platform.windows? then
63
+ result = %x(where.exe git).strip
64
+ else
65
+ result = %x(which git).strip
66
+ end
67
+ not result.empty?
57
68
  end
58
69
 
59
70
  private
@@ -1,7 +1,7 @@
1
1
 
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = 'vagrant-git-sync'
4
- spec.version = '1.0.2'
4
+ spec.version = '1.0.3'
5
5
  spec.authors = ['Jeff Bornemann']
6
6
  spec.email = ['bornemannjs@gmail.com']
7
7
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-git-sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Bornemann
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-11 00:00:00.000000000 Z
11
+ date: 2020-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -103,8 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  - !ruby/object:Gem::Version
104
104
  version: '0'
105
105
  requirements: []
106
- rubyforge_project:
107
- rubygems_version: 2.6.12
106
+ rubygems_version: 3.0.6
108
107
  signing_key:
109
108
  specification_version: 4
110
109
  summary: A Vagrant plugin that allows teams to automatically keep Git-backed environments