sublime_tortoise
sublime_tortoise copied to clipboard
Commit of Files returns Value error for os.path.relpath()
When I try to commit a single file, I cannot because of an error returned by this script in line 470 of Tortoise.py A possible fix is adding an "or os.path.isfile(path)" to line 92. Or simply checking if path is set.
Original:
self.get_vcs(path).commit(path if os.path.isdir(path) else None)
Edited:
self.get_vcs(path).commit(path if os.path.isdir(path) or os.path.isfile(path) else None)
This can be applied to many parts of the file (commit/status). I would greatly appreciate the ability to commit single files. Sorry if my understanding of Python isn't great, I've never used it before =X
Thanks!