ghpages_deploy 2.0.12 → 2.0.13
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/ghpages_deploy/git_manager.rb +1 -3
- data/lib/ghpages_deploy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 128d6986f7acb06025d7f8f8f9c5725496c7821e
|
|
4
|
+
data.tar.gz: e32690f1bac57370724765f4ce9c7a0a0f5acc00
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9fe0b08539d47b347db4d3efd79cb57dfd15bcbc777de07a5740859415e29d3c87e0ec6e92dd514820e34dd56aa450726999cfc0221900f0776154ad6e27eb79
|
|
7
|
+
data.tar.gz: 11d1d27f236735d5600695c4bd898d3237a45ecfa288a713cff0415689ebe23096f8e5a552f3535acef846f7a782cd78c7c6159c892e07eec9047989f8fe8644
|
|
@@ -9,7 +9,7 @@ module GithubPages
|
|
|
9
9
|
def initialize(remote, preserved_dir, repo = nil, branch = nil)
|
|
10
10
|
@preserved = preserved_dir
|
|
11
11
|
@remote = remote
|
|
12
|
-
@repo = repo ||
|
|
12
|
+
@repo = repo || git("config remote.#{remote}.url").chomp.gsub(/^git:/, 'https:')
|
|
13
13
|
@branch = branch || default_branch
|
|
14
14
|
|
|
15
15
|
@git = Git.open(Dir.pwd)
|
|
@@ -102,12 +102,10 @@ module GithubPages
|
|
|
102
102
|
|
|
103
103
|
def setup_branch
|
|
104
104
|
if remote_branch?
|
|
105
|
-
puts 'checking out remote branch'
|
|
106
105
|
git "checkout -b ghpages_deployment #{remote}/#{branch}"
|
|
107
106
|
remove_staged
|
|
108
107
|
@git.pull(remote, branch)
|
|
109
108
|
else
|
|
110
|
-
puts 'checking out orphan branch'
|
|
111
109
|
git "checkout --orphan ghpages_deployment"
|
|
112
110
|
remove_staged
|
|
113
111
|
end
|