Hello there, Im trying to start a git process using osproc.startProcess to be able to clone repos easily. Unfortunaly when getting the process errors (if any) using p.errorStream().readStr(100) returns the normal GIT output: Cloning into 'git-repo'.
Here is the code I wrote:
let git = osproc.startProcess("git", installPath, ["clone", fragmentUrl], options={poUsePath})
let gitOut = git.errorStream().readStr(200)
echo gitOut
What am I doing wrong ? I already saw that in issue 8442, but compiling with -d:useFork doesn't fix anything
Im running Artix linux if that matters.
Thanks for the help.
cloning any repo into stderr with git clone [email protected]:helix-editor/helix.git 2> err.txt will result in giving
Cloning in 'helix'...
X11 forwarding request failed on channel 0
executing it clone 2>err.txt results in have the git help written to err.txt