Fix another path reassignment 😬

This commit is contained in:
Nathan Sobo
2016-08-06 08:10:17 -06:00
parent ca76302b35
commit d8a54c9a38

View File

@@ -310,8 +310,8 @@ class GitRepository
getDirectoryStatus: (directoryPath) ->
directoryPath = "#{@relativize(directoryPath)}/"
directoryStatus = 0
for path, status of @statuses
directoryStatus |= status if path.indexOf(directoryPath) is 0
for statusPath, status of @statuses
directoryStatus |= status if statusPath.indexOf(directoryPath) is 0
directoryStatus
# Public: Get the status of a single path in the repository.