kawansoft / SympleGit-Java

SympleGit is a Java-based Git wrapper, co-developed with AI assistance, offering simplicity and ease of extension through AI integration.
https://www.symplegit.com
Apache License 2.0
4 stars 0 forks source link

symplegit won't work on linux #2

Open janesser opened 2 months ago

janesser commented 2 months ago

Runtime.getRuntime().exec("git");

this won't make it in linux, and this is too strictly validated in basicParamsCheks

typical resultions are with "/bin/sh -c" or allowing "/usr/bin/git"

ndepomereu commented 2 months ago

Hi,

This will be fixed in 1.1 version.

The Maven would be available soon, we must ask Sonatype to move our com.symplegit from old s01.oss.sonatype.org to Maven Central in order to build (administrative problem; we don't have any power to go fast on that).

Meanwhile, you can use the final jar manually: https://www.symplegit.com/download/symplegit-1.1.jar

(signature: https://www.symplegit.com/download/symplegit-1.1.jar.asc)

The new API is:

final Git sympleGit = SympleGit.custom()
    .setDirectory(repoDirectoryPath)
    .setGitExecutable("/usr/local/bin/git") // Specify the full path to the Git executable
    .build();