sublime_tortoise icon indicating copy to clipboard operation
sublime_tortoise copied to clipboard

Commit of Files returns Value error for os.path.relpath()

Open TReed0803 opened this issue 12 years ago • 0 comments

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!

TReed0803 avatar Aug 17 '12 06:08 TReed0803