mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Throw error from GitRepository constructor
This commit is contained in:
@@ -23,8 +23,6 @@ class Git
|
||||
|
||||
constructor: (path) ->
|
||||
@repo = new GitRepository(path)
|
||||
unless @repo?
|
||||
throw new Error("No Git repository found searching path: #{path}")
|
||||
$(window).on 'focus', => @refreshIndex()
|
||||
|
||||
refreshIndex: -> @repo.refreshIndex()
|
||||
|
||||
Reference in New Issue
Block a user