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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/octopress-deploy/git.rb +16 -1
- data/lib/octopress-deploy/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6479e61abefc814081c0a514ffd00a0295db9f0d
|
4
|
+
data.tar.gz: 433ace76c70c4461d91a1eb514523e9cdb9f57eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c199172a1401517d3c0dff85ce3368879f70b4ca506d60e851fd45baf22e3dd14590953f7533f96fa6b63210a5a886ba5343a5f59c5551f0a1e1fe849dba37ed
|
7
|
+
data.tar.gz: 384d08b0ace02b48ba8bf52e333dc5a4ebc3ca4e2a61f942f061c570a8d46ba5a3a1200479a5aec4f4a601eb9c1fbbced1c81c15efb98c9cf3a7b84f8472b184
|
data/CHANGELOG.md
CHANGED
data/lib/octopress-deploy/git.rb
CHANGED
@@ -111,7 +111,22 @@ CONFIG
|
|
111
111
|
end
|
112
112
|
|
113
113
|
def git_push
|
114
|
-
`git
|
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
|
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
|
+
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-
|
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.
|
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.
|