Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TReed0803 opened this issue Aug 17, 2012 · 0 comments
Open

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

TReed0803 opened this issue Aug 17, 2012 · 0 comments

Comments

@TReed0803
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant