Fall back to root repo for submodule check

This commit is contained in:
Kevin Sawicki
2014-03-20 14:05:15 -07:00
parent 8e2856465c
commit 4913714a61

View File

@@ -223,7 +223,7 @@ class Git
# Returns a {Boolean}.
isSubmodule: (path) ->
repo = @getRepo(path)
repo.isSubmodule(repo.relativize(path))
repo.isSubmodule(repo.relativize(path)) or @getRepo().isSubmodule(@relativize(path))
# Public: Get the status of a directory in the repository's working directory.
#