ghpages_deploy 1.1.2.beta3 → 1.1.2.beta5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ghpages_deploy/git_manager.rb +3 -1
- 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: 70263dd7962bef669ade71bd7500b3ea4a3f99b5
|
4
|
+
data.tar.gz: 2d68cafbd85928f49929c57f42f35985847a4716
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df22c1bbf60c3fff2feefcba58da5f41b59e3892f1013333fc42755536d7cd7bd1463014cb3e99b4ffe02360c516948663522cbb6e4cc97f360405b8bd9122f9
|
7
|
+
data.tar.gz: 8d304d21d585a2b82d605c8f059fb4f0c9a8aab20c58b9ce015815530da62230808d5a6d6e50997cbc9cf804847580684dbf9bab9e3e9bd5b092df3d31a7e965
|
@@ -81,8 +81,10 @@ module GithubPages
|
|
81
81
|
end
|
82
82
|
|
83
83
|
def setup_branch
|
84
|
-
if @git.is_local_branch?(branch)
|
84
|
+
if @git.is_local_branch?(branch)
|
85
85
|
@git.branch(branch).checkout
|
86
|
+
elsif @git.is_remote_branch?(branch)
|
87
|
+
git "checkout #{remote}/#{branch} -b #{branch}"
|
86
88
|
else
|
87
89
|
git "checkout --orphan #{branch}"
|
88
90
|
end
|