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

hot-fix(pull) create file if doesn’t exist when pulling #65

Merged
merged 4 commits into from
May 2, 2020
Merged

hot-fix(pull) create file if doesn’t exist when pulling #65

merged 4 commits into from
May 2, 2020

Conversation

rluvaton
Copy link
Contributor

@rluvaton rluvaton commented May 1, 2020

Fix #64

The bug in #64 was in os.remove because the file didn’t exist so it couldn’t be removed, so I removed the remove and change the open file mode to w+

w+ create file if it doesn't exist and open it in (over)write mode
[it overwrites the file if it already exists]

Used `w+`
> `w+` create file if it doesn't exist and open it in (over)write mode
> [it overwrites the file if it already exists]
@rluvaton rluvaton changed the title hot-fix(pull) create file if doesn’t exist when pulling WIP hot-fix(pull) create file if doesn’t exist when pulling May 1, 2020
The bug in #64 was in `os.remove` because the file didn’t exist so it couldn’t be removed, so I removed the `remove` because we overwrite the file anyway
@rluvaton rluvaton changed the title WIP hot-fix(pull) create file if doesn’t exist when pulling hot-fix(pull) create file if doesn’t exist when pulling May 1, 2020
@OrkoHunter
Copy link
Owner

Thank you, I tested and it looks okay to me!

@OrkoHunter OrkoHunter merged commit 01d1379 into OrkoHunter:master May 2, 2020
@rluvaton rluvaton deleted the patch-1 branch May 2, 2020 17:12
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

Successfully merging this pull request may close these issues.

Can't pull if there is no commands
2 participants