lib/instapusher/git.rb in instapusher-0.0.7 vs lib/instapusher/git.rb in instapusher-0.0.8

- old
+ new

@@ -12,9 +12,11 @@ def current_user `git config user.name`.chop! end def project_name - `git config remote.origin.url`.chop!.scan(/\/([^\/]+).git$/).flatten.first + result = `git config remote.origin.url`.chop!.scan(/\/([^\/]+)?$/).flatten.first + result.sub!(/\.git$/, '') if result + result end end end