Skip to content

Commit 54fb217

Browse files
vazimathis
authored andcommitted
setup_github_pages: allow for clones missing .git extension
1 parent 8bf09b1 commit 54fb217

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ task :setup_github_pages, :repo do |t, args|
310310
user = repo_url.match(/:([^\/]+)/)[1]
311311
branch = (repo_url.match(/\/[\w-]+.github.com/).nil?) ? 'gh-pages' : 'master'
312312
project = (branch == 'gh-pages') ? repo_url.match(/\/([^\.]+)/)[1] : ''
313-
unless `git remote -v`.match(/origin.+?octopress.git/).nil?
313+
unless `git remote -v`.match(/origin.+?octopress(?:\.git)?/).nil?
314314
# If octopress is still the origin remote (from cloning) rename it to octopress
315315
system "git remote rename origin octopress"
316316
if branch == 'master'

0 commit comments

Comments
 (0)