mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-11-16 06:05:00 -05:00
setup_github_pages: allow for clones missing .git extension
Conflicts: Rakefile
This commit is contained in:
parent
ef9119089d
commit
ec07a5d7f8
2
Rakefile
2
Rakefile
@ -390,7 +390,7 @@ task :setup_github_pages, :repo do |t, args|
|
|||||||
project = (branch == 'gh-pages') ? repo_url.match(/\/(.+)(\.git)/)[1] : ''
|
project = (branch == 'gh-pages') ? repo_url.match(/\/(.+)(\.git)/)[1] : ''
|
||||||
url = "http://#{user}.github.com"
|
url = "http://#{user}.github.com"
|
||||||
url += "/#{project}" unless project == ''
|
url += "/#{project}" unless project == ''
|
||||||
unless `git remote -v`.match(/origin.+?octopress.git/).nil?
|
unless `git remote -v`.match(/origin.+?octopress(\.git/).nil?
|
||||||
# If octopress is still the origin remote (from cloning) rename it to octopress
|
# If octopress is still the origin remote (from cloning) rename it to octopress
|
||||||
system "git remote rename origin octopress"
|
system "git remote rename origin octopress"
|
||||||
if branch == 'master'
|
if branch == 'master'
|
||||||
|
Loading…
Reference in New Issue
Block a user