gtoolkit icon indicating copy to clipboard operation
gtoolkit copied to clipboard

Wrong path to git in IceGitCliPlatform

Open suhr opened this issue 6 months ago • 3 comments

IceGitCliPlatform tries to use the following value as a git executable path:

/home/suhr/Glamor/[1;32m#[0m [37m [0m [1;32mcommand[0m [37m [0m              [1;32mpath[0m              [37m [0m   [1;32mtype[0m   
[37m─────────────────────────────────────────────────────────[0m
 [1;32m0[0m [37m [0m [37mgit[0m     [37m [0m [37m/run/current-system/sw/bin/git[0m [37m [0m [37mexternal[0m

suhr avatar Jun 27 '25 23:06 suhr

And I think I know why:

/home/suhr> which git
 #   command                path                  type
─────────────────────────────────────────────────────────
 0   git       /run/current-system/sw/bin/git   external

GtOsSystemInfo >> #findExecutable: assumes a bash-like system shell. But I use nushell, which is rather different.

suhr avatar Jun 27 '25 23:06 suhr

What should it be on nushell?

girba avatar Jun 30 '25 18:06 girba

which git | first | get path should work.

suhr avatar Jun 30 '25 20:06 suhr