mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Fall back to root repo for submodule check
This commit is contained in:
@@ -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.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user