This commit is contained in:
Kevin Sawicki
2014-03-20 14:19:19 -07:00
parent db6b4d7b81
commit 3428ee335a

View File

@@ -102,11 +102,11 @@ class Git
# Returns the corresponding {Repository}
getRepo: (path) ->
unless @repo?
if @repo?
@repo.submoduleForPath(path) ? @repo
else
throw new Error("Repository has been destroyed")
@repo.submoduleForPath(path) ? @repo
# Reread the index to update any values that have changed since the
# last time the index was read.
refreshIndex: -> @getRepo().refreshIndex()