From 4c2931f6b5bc7d77c94c6bb9ff97c49d7152da5e Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 30 May 2014 15:40:49 -0700 Subject: [PATCH] Use forward slash on all platforms Paths are normalized by git-utils to use / on all platforms --- src/git.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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