-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add logic to update Git based components #34
Comments
Well that was a success for WP-a2z.org. The output shows the result of If there wasn't a GIT repository we'd get
If we're not allowed to run the git command under So now we can go ahead and write the code to perform |
Having made further progress, rather than hook into oik options > overview the solution should now use its own admin page ( oik_batch ) to implement Git admin. Note: It takes a reasonable amount of time to perform GIT commands, so we can't really do too many in one server request. The logic to check if a plugin is a GIT repository needs to be quicker. |
v1.0.0 has now been installed on wp-a2z.org and Network Activated. As expected, the checking logic does not work for private repositories which require the username and password to be given. For diy-oik we get the following messages.
|
Somehow EDD is now ahead
|
So now we need to make it work for themes as well as plugins. |
A method called echo() is only supported from PHP 7. After migration oik-plugins.co.uk had reverted to PHP 5.4, so there was a syntax error when echo was encounted as a method name in Workaround: Switch to PHP 7.2... which was what was wanted in the first place. |
In oik-plugins.co.uk the plugin called genesis-footer-widgets was uploaded directly from a GIT repository which is not accessible on the Linux server.
Consider adding some logic to deal with problems like this. |
We may need to escape the output from the git commands in case there’s HTTP or even JavaScript that could break the display. On core, the diy-oik plugin, the commit SHA was all numeric and got displayed as a telephone number! 1894221 |
On oik-plugins.com, which didn't have the latest version of oik-batch, I tried ftping the GIT repo from \github\bobbingwide\oik-batch. This enabled oik-batch to work but it could not self check since there were multiple remote repositories and the wrong one was found first. Perhaps it should check for remote called |
Currently the nested plugin called oik-wp.php is not expected to be activated.
I want to test whether or not I can invoke git commands from a Linux hosted Apache server, rather than SSH. If so, then we should be able to implement
git pull
commands for Git based repos.The text was updated successfully, but these errors were encountered: