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 realpath implementation #38

Closed
wants to merge 1 commit into from

Conversation

ssiegel
Copy link
Contributor

@ssiegel ssiegel commented Mar 25, 2017

The previous implementation wrongly returned the current directory

  • for some existing inputs, e.g. "/" or "/etc",
  • for some not existing inputs, e.g. "/no_such_name/" or
    "/etc/no_such_name/" or "no_such_name/",
  • for the empty string.

The latter made the safety check for an existing git repository always
pass, leading to a bunch of errors when run outside of a repository.

The previous implementation wrongly returned the current directory
- for some existing inputs, e.g. "/" or "/etc",
- for some not existing inputs, e.g. "/no_such_name/" or
  "/etc/no_such_name/" or "no_such_name/",
- for the empty string.

The latter made the safety check for an existing git repository always
pass, leading to a bunch of errors when run outside of a repository.
@elasticdog
Copy link
Owner

Thank you very much for fixing this! I really appreciate the contribution and am thinking I need to get some testing into place as more and more transcrypt functionality gets added. I've already merged your code into master and am currently traveling, but will try and cut a new release when I have some downtime.

@elasticdog elasticdog closed this Apr 2, 2017
@ssiegel ssiegel deleted the fix-realpath branch April 5, 2017 01:18
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.

2 participants