Browse Source

Fixing bugs on WIndows, starting other platforms

tags/v1.0
Ad5001 2 years ago
parent
commit
17c53d03d5
3 changed files with 5 additions and 4 deletions
  1. 1
    1
      config.yml
  2. 1
    1
      resources/win.yml
  3. 3
    2
      src/Ad5001/Gitable/Windows.php

+ 1
- 1
config.yml View File

@@ -1,4 +1,4 @@
# Welcome to windows Gitable's config !
# Select here the path of the git executable (if you did
# not modify it while installing git, it should work.)
executable_path: "C:\\Program Files\\Git\\bin\\git.exe"
executable_path: "C:\\PROGRA~1\\Git\\bin\\git.exe"

+ 1
- 1
resources/win.yml View File

@@ -1,4 +1,4 @@
# Welcome to windows Gitable's config !
# Select here the path of the git executable (if you did
# not modify it while installing git, it should work.)
executable_path: "C:\\Program Files\\Git\\bin\\git.exe"
executable_path: "C:\\PROGRA~1\\Git\\bin\\git.exe"

+ 3
- 2
src/Ad5001/Gitable/Windows.php View File

@@ -29,8 +29,9 @@ class Windows extends GitClient {
*/
public function gitExec(string $args) : string {
chdir($this->dir);
echo "$this->executable " . $args . " ";
$process = proc_open(
"\"$this->executable\" " . $args,
"$this->executable " . $args,
array(
0 => array("pipe", "r"), //S TDIN
1 => array("pipe", "w"), //S TDOUT
@@ -116,7 +117,7 @@ class Windows extends GitClient {
public function initcheck() {
$this->executable = $this->main->getConfig()->get("executable_path");
$process = proc_open(
"\"$this->executable\" --version",
"$this->executable --version",
array(
0 => array("pipe", "r"), //S TDIN
1 => array("pipe", "w"), //S TDOUT

Loading…
Cancel
Save