Assume PHP can find git instead of hardcode path#48
Assume PHP can find git instead of hardcode path#48josh4trunks wants to merge 1 commit intokbjr:masterfrom josh4trunks:patch-1
Conversation
1) Assume PHP can find git path instead of hardcoding /usr/bin/git
* For PHP-FPM this is set in the config with a line similar to `env[PATH] = /usr/local/bin:/usr/bin:/bin`
2) Remove redundant `windows_mode()` which is now the default
3) Bump version
|
@andrevanzuydam what OS are you using Git.php on? Do you mind testing it this change works/breaks anything for you? |
|
I am using Ubuntu, Windows & MacOs, I will give you some feedback On Fri, May 13, 2016 at 8:40 PM, Joshua Ruehlig notifications@github.com
[image: --] Andre van Zuydam [image: http://www.daniweb.com/profiles/1108517/Andre-van-Zuydam] [image: https://www.openhub.net/accounts/75973?ref=Detailed] |
|
I'm running into an issue due to this now myself. I am running windows and receive
each time I am configuring my webapp. Anyone have a workaround for this? |
|
your app can enable windows mode, or change the path. but by default we shouldn't be hardcoding this path. |
|
how would I enable windows mode? |
|
I'm not sure, I haven't looked into this code for a while. but I do remember it is an option. |
|
I've seen the function within git.php, ok, I will figure it out, thanks |
Assume PHP can find git path instead of hardcoding /usr/bin/git
Remove redundant
windows_mode()which is now the default behaviourBump version
Fixes #47