diff --git a/src/repository-status-handler.coffee b/src/repository-status-handler.coffee index 0a9c08f7c..0df0e56a6 100644 --- a/src/repository-status-handler.coffee +++ b/src/repository-status-handler.coffee @@ -6,8 +6,17 @@ module.exports = (repoPath) -> if repo? workingDirectoryPath = repo.getWorkingDirectory() statuses = {} + + # Statuses in main repo for filePath, status of repo.getStatus() statuses[path.join(workingDirectoryPath, filePath)] = status + + # Statuses in submodules + for submodulePath, submoduleRepo of repo.submodules + workingDirectoryPath = submoduleRepo.getWorkingDirectory() + for filePath, status of submoduleRepo.getStatus() + statuses[path.join(workingDirectoryPath, filePath)] = status + upstream = repo.getAheadBehindCount() branch = repo.getHead() repo.release()