mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Fix path affixing in git.coffee
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user