jacogr / atom-git-control

Not maintained :(
MIT License
227 stars 70 forks source link

Project list contains only 'undefied' on windows #168

Closed ntrf closed 8 years ago

ntrf commented 8 years ago

The repository path is being parsed with the asumption that path will be delimited by / and the last folder will be .git (as seen in project-dialog.coffee line 32). This fails on windows, scince all paths on windows are separated by \ symbol. You can use node.js path api in order to handle path parsing properly and getWorkingDirectory function to get path without .git suffix.

path = require 'path'
...
path.parse(repo.getWorkingDirectory()).name
trahloff commented 8 years ago

+1

apazga commented 8 years ago

+1. Attached screenshot.

atom-undefined