diff --git a/src/git.coffee b/src/git.coffee index 7e9b22f4b..25c3db9fe 100644 --- a/src/git.coffee +++ b/src/git.coffee @@ -1,4 +1,4 @@ -{join, sep} = require 'path' +{join} = require 'path' _ = require 'underscore-plus' {Emitter, Subscriber} = require 'emissary' @@ -246,7 +246,7 @@ class Git # Returns a {Number} representing the status. This value can be passed to # {::isStatusModified} or {::isStatusNew} to get more information. getDirectoryStatus: (directoryPath) -> - directoryPath = "#{@relativize(directoryPath)}#{sep}" + directoryPath = "#{@relativize(directoryPath)}/" directoryStatus = 0 for path, status of @statuses directoryStatus |= status if path.indexOf(directoryPath) is 0