mgmt 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/mgmt +5 -5
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f32fec3a2196b85b44f3b46780d3fc21c20d0b2
4
- data.tar.gz: 5159066bc394d9ea01c0d62a86bef11caae1e542
3
+ metadata.gz: 98b9605516f043d635ab59fc35694f64f35d7a7d
4
+ data.tar.gz: c90386008a03d40235869436d283c2f18b80705b
5
5
  SHA512:
6
- metadata.gz: 1318bcf3271321453312c9c3bf3064282ed789cb56dfb06f816f8e7c6bb9c154e8b8ef5dad619118daf056ce8dee792a78fefefceb00673978feaf14836e21ac
7
- data.tar.gz: cb23dcd38cf7337532f47331cb5b2e5350f15a8e124f83570dc3e4537b623ee458176460783e3f7881399fd55530b115448afe7c7a82d24f06123be2dc97a10b
6
+ metadata.gz: e5c083285af32c6418089cfd6721921a0f9a8d95251d34a214f05b36ea2dbd32e2baf1da54629f5464da933c5a626c38db42e433b4e60c1d9935405f9419738b
7
+ data.tar.gz: ebeb914bee8dc7d00c299f1ba6d51351dd46f78a6dc931fbc813c53896504b3b023bf52a87e6bd229c0aa29709e358f9b1e5bf98c2eae1c7d9e87082f3ea0654
data/bin/mgmt CHANGED
@@ -9,7 +9,7 @@ module MGMT
9
9
  DEPSFILE = "Gopherfile"
10
10
  LOCKFILE = "Gopherfile.lock"
11
11
  VENDOR = ".vendor"
12
- VERSION = "0.2.2"
12
+ VERSION = "0.2.3"
13
13
 
14
14
  def xputs(code, msg)
15
15
  code = nil if ENV['TERM'] != "xterm"
@@ -134,14 +134,14 @@ module MGMT
134
134
  def pull!
135
135
  skip = false
136
136
  if File.directory?(target)
137
- skip = @tag && @tag == `cd #{target} && git log -n 1 --pretty=format:'%h'`.strip
138
- MGMT.sh "cd #{target} && git pull -q origin master" unless skip
137
+ skip = @tag && @tag == `cd #{target} && git --git-dir=.git log -n 1 --pretty=format:'%h'`.strip
138
+ MGMT.sh "cd #{target} && git --git-dir=.git pull -q origin master" unless skip
139
139
  else
140
140
  MGMT.sh "git clone -q #{@repo} #{target}"
141
141
  end
142
142
 
143
- @tag ||= `cd #{target} && git log -n 1 --pretty=format:'%h'`.strip
144
- MGMT.sh "cd #{target} && git reset -q --hard #{@tag}" unless skip
143
+ @tag ||= `cd #{target} && git --git-dir=.git log -n 1 --pretty=format:'%h'`.strip
144
+ MGMT.sh "cd #{target} && git --git-dir=.git reset -q --hard #{@tag}" unless skip
145
145
  !skip
146
146
  end
147
147
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mgmt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dimitrij Denissenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-11 00:00:00.000000000 Z
11
+ date: 2015-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake