vagrant-ebcommon 0.4.6 → 0.4.7
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/vagrant-ebcommon/files/git_hooks/pre-push +3 -3
- data/lib/vagrant-ebcommon/version.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: 97b4f83a4993e307b5e2af9dbdd21e78f1c5e303
|
|
4
|
+
data.tar.gz: 7aa56d0f9c96986e62114336607fc5f4634c2194
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7edcc535c5ef4bc8083cf023bebdf48a45964a24cbade22a159bd7b2c61d5e16ff640d5bba123384eb2ff8d247ac6bc54ff79ee4c706ce7652d193f0b9994fc5
|
|
7
|
+
data.tar.gz: 5f4de793b78347d82c021e66c5913bba04bbc67d1471643442ffa47635acdf4491428882028d6d49cc499e60c09648411995ffc1f1e77741a0ce665c0e74916b
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/bin/
|
|
1
|
+
#!/bin/bash
|
|
2
2
|
|
|
3
3
|
# Our pre-push hook for python repositories. This is distributed via our
|
|
4
4
|
# vagrant plugin: https://github.com/eventbrite/vagrant-ebcommon.
|
|
@@ -44,14 +44,14 @@ push_command=$(ps -ocommand= -p $PPID)
|
|
|
44
44
|
|
|
45
45
|
is_destructive='\-\-force|\-\-delete| \-f'
|
|
46
46
|
|
|
47
|
-
will_remove_protected_branch=':'$protected_branch
|
|
47
|
+
will_remove_protected_branch=' :'$protected_branch
|
|
48
48
|
|
|
49
49
|
do_exit(){
|
|
50
50
|
echo $policy
|
|
51
51
|
exit 1
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
if [[ $push_command =~ $is_destructive ]] && [ $current_branch = $protected_branch ]; then
|
|
54
|
+
if [[ $push_command =~ $is_destructive ]] && [[ $current_branch = $protected_branch ]]; then
|
|
55
55
|
do_exit
|
|
56
56
|
fi
|
|
57
57
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vagrant-ebcommon
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Hahn
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-06-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|