mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-13 08:44:12 +03:00
Don't make GitRepository
a window global
This commit is contained in:
parent
f876071ff0
commit
74d7d48dcc
@ -1,6 +1,7 @@
|
||||
$ = require 'jquery'
|
||||
_ = require 'underscore'
|
||||
Subscriber = require 'subscriber'
|
||||
GitRepository = require 'git-repository'
|
||||
|
||||
module.exports =
|
||||
class Git
|
||||
|
@ -11,7 +11,6 @@ Pasteboard = require 'pasteboard'
|
||||
require 'jquery-extensions'
|
||||
require 'underscore-extensions'
|
||||
require 'space-pen-extensions'
|
||||
require 'git-repository'
|
||||
|
||||
windowAdditions =
|
||||
rootViewParentSelector: 'body'
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user