From cb0f3ce2eca5db0135be13272ff0b2e95c5ad610 Mon Sep 17 00:00:00 2001 From: Matt Colyer Date: Mon, 11 Nov 2013 14:12:46 -0800 Subject: [PATCH] Fix path affixing in git.coffee --- src/git.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/git.coffee b/src/git.coffee index c1fb57853..c9f64eed9 100644 --- a/src/git.coffee +++ b/src/git.coffee @@ -216,7 +216,8 @@ class Git # # Returns a Number representing the status. getDirectoryStatus: (directoryPath) -> - directoryPath = "#{directoryPath}/" + {sep} = require 'path' + directoryPath = "#{directoryPath}#{sep}" directoryStatus = 0 for path, status of @statuses directoryStatus |= status if path.indexOf(directoryPath) is 0