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

Fix error while deleting .git directory on Windows #111

Merged

Conversation

anto-christo
Copy link
Contributor

There was an error thrown while deleting the .git directory on Windows.

The main reason was due to the path. Windows uses \ in it's path and Unix uses /. Hence, have to use the path module to dynamically generate the path based on OS.

Secondly, we would like to delete all the contents of .git directory. Hence, have to use rmdir command with options in place of del command.

Copy link
Member

@jamesgeorge007 jamesgeorge007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may squash the commits into one

Copy link
Member

@jamesgeorge007 jamesgeorge007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@jamesgeorge007 jamesgeorge007 merged commit 4f171a1 into madlabsinc:feat/improvements Apr 27, 2019
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.

None yet

2 participants