Fix path affixing in git.coffee

This commit is contained in:
Matt Colyer
2013-11-11 14:12:46 -08:00
parent 5f6f09fc45
commit cb0f3ce2ec

View File

@@ -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