Don't make GitRepository a window global

This commit is contained in:
Corey Johnson & Nathan Sobo 2013-01-23 13:03:57 -07:00 committed by Kevin Sawicki
parent f876071ff0
commit 74d7d48dcc
3 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
$ = require 'jquery'
_ = require 'underscore'
Subscriber = require 'subscriber'
GitRepository = require 'git-repository'
module.exports =
class Git

View File

@ -11,7 +11,6 @@ Pasteboard = require 'pasteboard'
require 'jquery-extensions'
require 'underscore-extensions'
require 'space-pen-extensions'
require 'git-repository'
windowAdditions =
rootViewParentSelector: 'body'

View File

@ -1,4 +1,5 @@
class window.GitRepository
module.exports =
class GitRepository
constructor: (path) ->
unless repo = $git.getRepository(path)
throw new Error("No Git repository found searching path: " + path)