Browse code

Removed unnecessary passive group from octopress origin regex

Brandon Mathis authored on 13/01/2013 at 03:24:15
Showing 1 changed files
... ...
@@ -310,7 +310,7 @@ task :setup_github_pages, :repo do |t, args|
310 310
   user = repo_url.match(/:([^\/]+)/)[1]
311 311
   branch = (repo_url.match(/\/[\w-]+.github.com/).nil?) ? 'gh-pages' : 'master'
312 312
   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?
314 314
     # If octopress is still the origin remote (from cloning) rename it to octopress
315 315
     system "git remote rename origin octopress"
316 316
     if branch == 'master'