octopress-deploy 1.2.4 → 1.2.5

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: 2449ee39c7334cbd9ea05551003abbef63598bbc
4
- data.tar.gz: 4ce2f24702903c8bbee9330fd86d7f34de20c458
3
+ metadata.gz: 6479e61abefc814081c0a514ffd00a0295db9f0d
4
+ data.tar.gz: 433ace76c70c4461d91a1eb514523e9cdb9f57eb
5
5
  SHA512:
6
- metadata.gz: 9822b96161764cf9025b16bc867b58a019e57e5be8779244724ffe856d8233e8618fae4d213786172b04d4d44a28b3abe91cea1d7f4968c3c0eede14b793fc47
7
- data.tar.gz: efe936cd944132a11d04a96151f71762a47a3bbdd20901814024e863ba12245537a0fbfb733146ee9132a787f9285e991eb1eb5d9acfe7bcd404b1c1402d9d1e
6
+ metadata.gz: c199172a1401517d3c0dff85ce3368879f70b4ca506d60e851fd45baf22e3dd14590953f7533f96fa6b63210a5a886ba5343a5f59c5551f0a1e1fe849dba37ed
7
+ data.tar.gz: 384d08b0ace02b48ba8bf52e333dc5a4ebc3ca4e2a61f942f061c570a8d46ba5a3a1200479a5aec4f4a601eb9c1fbbced1c81c15efb98c9cf3a7b84f8472b184
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.2.5
4
+ - Fix: Ensures that deployment git remote is the same as configuration before pushing.
5
+
3
6
  ### 1.2.4 - 2015-05-11
4
7
  - Fix: `--site` flag now accepts an option as it should.
5
8
 
@@ -111,7 +111,22 @@ CONFIG
111
111
  end
112
112
 
113
113
  def git_push
114
- `git push #{@remote} #{@branch}`
114
+ if `git remote -v` =~ /#{@remote}\s+#{@repo}.+\(push\)/
115
+ `git push #{@remote} #{@branch}`
116
+ else
117
+ remotes = `git remote -v`
118
+ push_remote = remotes.match(/^origin\s+(.+)\s+\(push\)/)
119
+ if push_remote
120
+ abort %Q{Deployment remote #{@remote} is pointing to "#{push_remote[1]}" but configuration points to #{@remote}
121
+ To reset your deployment, run:
122
+ rm -rf #{@deploy_dir}
123
+ octopress deploy}
124
+ else
125
+ abort %Q{Deployment remote configured improperly. To reset your deployment run:
126
+ rm -rf #{@deploy_dir}
127
+ octopress deploy}
128
+ end
129
+ end
115
130
  end
116
131
 
117
132
  # Attempt to pull from the remote branch
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Deploy
3
- VERSION = "1.2.4"
3
+ VERSION = "1.2.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-11 00:00:00.000000000 Z
11
+ date: 2015-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorator
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  version: '0'
157
157
  requirements: []
158
158
  rubyforge_project:
159
- rubygems_version: 2.4.6
159
+ rubygems_version: 2.4.7
160
160
  signing_key:
161
161
  specification_version: 4
162
162
  summary: Easily deploy any Jekyll or Octopress site using S3, Git, or Rsync.