updated plugin `Gitium` version 1.0.5

This commit is contained in:
KawaiiPunk 2023-06-28 12:45:49 +00:00 committed by Gitium
parent f710fa7de2
commit 7d5eef77cf
5 changed files with 367 additions and 340 deletions

View File

@ -215,7 +215,7 @@ function gitium_commit_and_push_gitignore_file( $path = '' ) {
if ( ! function_exists( 'gitium_acquire_merge_lock' ) ) :
function gitium_acquire_merge_lock() {
$gitium_lock_path = apply_filters( 'gitium_lock_path', '/tmp/.gitium-lock' );
$gitium_lock_path = apply_filters( 'gitium_lock_path', sys_get_temp_dir().'/.gitium-lock' );
$gitium_lock_handle = fopen( $gitium_lock_path, 'w+' );
$lock_timeout = intval( ini_get( 'max_execution_time' ) ) > 10 ? intval( ini_get( 'max_execution_time' ) ) - 5 : 10;

View File

@ -1,7 +1,7 @@
<?php
/**
* Plugin Name: Gitium
* Version: 1.0.3
* Version: 1.0.5
* Author: Presslabs
* Author URI: https://www.presslabs.com
* License: GPL2

View File

@ -155,11 +155,13 @@ class Git_Wrapper {
protected function _call(...$args) {
$args = join( ' ', array_map( 'escapeshellarg', $args ) );
$cmd = "git $args 2>&1";
$return = -1;
$response = array();
$env = $this->get_env();
$git_bin_path = apply_filters( 'gitium_git_bin_path', '' );
$cmd = "${git_bin_path}git $args 2>&1";
$proc = proc_open(
$cmd,
array(
@ -430,7 +432,7 @@ class Git_Wrapper {
function get_remote_branches() {
list( , $response ) = $this->_call( 'branch', '-r' );
$response = array_map( 'trim', $response );
$response = array_map( create_function( '$b', 'return str_replace("origin/","",$b);' ), $response );
$response = array_map( function( $b ) { return str_replace( "origin/", "", $b ); }, $response );
return $response;
}

View File

@ -3,26 +3,44 @@
Contributors: PressLabs
Donate link: https://www.presslabs.com/gitium/
Tags: git, version, versioning, deployment, version-control, github, bitbucket, travis, code, revision, testing, development, branch, production, staging, debug, plugin, gitium, presslabs, simple
Requires at least: 3.9
Tested up to: 5.2.2
Requires at least: 4.7
Tested up to: 6.2.2
Requires PHP: 5.6
License: GPLv2
Stable tag: 1.0.3
Stable tag: 1.0.5
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Automatic git version control and deployment for your plugins and themes integrated into wp-admin.
== About the makers ==
This plugin was developed by the crafty people at Presslabs—the Smart Managed WordPress Hosting Platform. Here we bring high-performance hosting and business intelligence for WordPress sites. In our spare time, we contribute to the global open-source community with our code.
== Description ==
Weve built Gitium back in 2013 to provide our clients a more simple and error-free method to integrate a new git version control into their code management flow.
Gitium enables continuous deployment for WordPress, integrating with tools such as Github, Bitbucket or Travis-CI. Theme or plugin updates, installs and removals are all automatically versioned. Ninja code edits from the WordPress editor are also tracked by the version control system.
== What is Gitium? ==
Gitium is designed with sane development environments in mind, allowing staging and production to follow different branches of the same repository. You can also deploy code by simply using `git push`.
This plugin enables continuous deployment for WordPress, integrating with tools such as Github, Bitbucket or Travis-CI. Theme or plugin updates, installs and removals are all automatically versioned. Ninja code edits from the WordPress editor are also tracked by the version control system.
Gitium requires `git` command line tool with a minimum version of 1.7 installed on the server and the `proc_open` PHP function enabled.
== Why is Gitium? ==
You can find more documentation on [Presslabs](https://www.presslabs.com/help/gitium/general).
Gitium is designed with responsible development environments in mind, allowing staging and production to follow different branches of the same repository. You can also deploy code by simply using git push.
Gitium requires git command line tool with a minimum version of 1.7 installed on the server and the proc_open PHP function enabled.
== Gitium features: ==
-preserves the WordPress behavior
-accountability for code changes
-safe code storage—gets all code edits in Git
== Development ==
For more details about Gitium, head here: http://docs.presslabs.com/gitium/usage/
== Receiving is nicer when giving ==
Weve built this to make our lives easier and were happy to do that for other developers, too. Wed really appreciate it if you could contribute with code, tests, documentation or just share your experience with Gitium.
Development of Gitium happens at http://github.com/PressLabs/gitium
Issues are tracked at http://github.com/PressLabs/gitium/issues
This WordPress plugin can be found at https://wordpress.org/plugins/gitium/
== Screenshots ==
@ -78,10 +96,17 @@ Gitium does not support multisite setups at the moment.
Submodules are currently not supported.
== Upgrade Notice ==
= 1.0.3 =
= 1.0.5 =
Fixed wrong redirection for multisite installations during initial setup
== Changelog ==
= 1.0.5 =
* Various bug fixes
= 1.0.4 =
* PHP 8 compat. fixes
= 1.0.3 =
* Fixed wrong redirection for multisite installations during initial setup