kemayo/sublime-text-2-git — pull request #213 by spence (2012-11-02 18:38:41+00:00)
Title: Ignore files in non-existent directories

On occasion, when switching between branches, files in directories that no longer exist remain open in ST2.

The Git plugin throws an OSError from [the code below](https://github.com/kemayo/sublime-text-2-git/blob/master/git.py#L106):
```python
if self.working_dir != "":
os.chdir(self.working_dir)
```

The error is caught, but the message displayed is still:
> Git binary could not be found in PATH
>
> Consider using the git_command setting for the Git plugin
>
> PATH is: ....

However, this message is not already relevant, since it hides the actual exception.
> OSError: [Errno 2] No such file or directory: '\'

It would seem that other users are having this issue as well:
* https://github.com/kemayo/sublime-text-2-git/issues/212
* http://www.google.com/search?&q=error%3A%20Git%20binary%20could%20not%20be%20found%20in%20PATH

_Perhaps, it would be better to add alert the actual exception message._