From ec07a5d7f84f1f5af0ab59f6785af02b6c94c752 Mon Sep 17 00:00:00 2001 From: Vaz Allen Date: Wed, 3 Oct 2012 11:50:08 -0700 Subject: [PATCH] setup_github_pages: allow for clones missing .git extension Conflicts: Rakefile --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 887a6f7..9624822 100644 --- a/Rakefile +++ b/Rakefile @@ -390,7 +390,7 @@ task :setup_github_pages, :repo do |t, args| project = (branch == 'gh-pages') ? repo_url.match(/\/(.+)(\.git)/)[1] : '' url = "http://#{user}.github.com" 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 system "git remote rename origin octopress" if branch == 'master'