-
Notifications
You must be signed in to change notification settings - Fork 623
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(core): Use absolute path for git #1709
Conversation
Hi, thank you very much for your pull request, but let me tell you a story first. Octopi is not an OS supported by PiVPN, and they were not very keen on collaborating with us when I approached them about this particular issue. Therefore, I won't be making or accepting any changes based on that particular distribution, and Octopi users should either complain there, use the workaround provided in the docs, or use any of the PiVPN-supported systems. However, I am open to putting that aside and accepting a solution that works well for both sides. Even though I don't dislike your solution, and before doing any review, I see a potentially big problem with your approach. When we simply call the Also Please read this about Pull requests on PiVPN: https://github.com/pivpn/pivpn#pull-requests @orazioedoardo @TinCanTech Any thoughts? |
@4s3ti Thank you for the backstory. I also just looked through the issues/discussions from 2017. Thank you for adjusting the branch the PR is pointing towards. On the topic of calling Users trying to use OctoPi or some other "dumbed down" OS are likely to run into PiVPN's script not working more often than their After searching for quite some time, the only instances that I saw However, if you believe that this isn't a solution to OctoPi, or other git-related issues, please feel free to close the PR. |
If OctoPi compatibility reduces to just this you might as well make the script detect OptoPI somehow and use the full path in that case. |
well ... that might be to much ... i'd say we can do it like this instead. set a var called This way if something happens its easy to fix by updating only the value of the variable. and please update your git commits following the commit convention mentioned here: https://github.com/pivpn/pivpn#pull-requests |
On installations such as OctoPi, git is shadowed by /root/bin/git. This change forces the script to use /usr/bin/git which isn't affected by other executables with the name 'git' in the path.
Updated. Apologies for both the delay in getting back on this, and the multiple commits. Had some trouble getting the description to show up correctly with the commit. |
No worries! Thank you for your contribution!! Merging, into test branch. |
🎉 This PR is included in version 4.2.1-test.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 4.3.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
On installations such as OctoPi,
git
is shadowed by/root/bin/git
. This change forces the script to use/usr/bin/git
which isn't affected by other executables with the name "git" in the path.