Skip to content

symplegit won't work on linux #2

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

Open
janesser opened this issue Sep 14, 2024 · 1 comment
Open

symplegit won't work on linux #2

janesser opened this issue Sep 14, 2024 · 1 comment

Comments

@janesser
Copy link

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
Copy link
Member

ndepomereu commented Sep 15, 2024

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();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants