How to change MATLAB's sh.exe path?

10 Ansichten (letzte 30 Tage)
DanielFromIllinois
DanielFromIllinois am 16 Mai 2023
Hello,
I am using a repo that has Git LFS installed and set to track .mat files. I when I try to compare a large .mat file to its ancestor or a previous revision using MATLAB's source control interface I get the following error.
"Error cannot run git-lfs smudge -- largeData.mat. Unable to locate sh.exe at C:\Program Files\Git\bin\sh.exe or on the system path.. Unable to locate sh.exe at C:\Program Files\Git\bin\sh.exe"
My sh.exe is installed at C:\Apps\Git\bin ...
I cant figure out how to tell MATLAB to look there instead. Any thoughts? I'd prefer not to have to touch my system environment variables as I'd need to get IT involved on my corporate machine.
Also just to know. This only happens when I run this in a repo with git lfs installed. I dont get the error when I try the same steps without git lfs.
You can reproduce this by generating a repo with git LFS installed on it and track the .mat files.

Akzeptierte Antwort

DanielFromIllinois
DanielFromIllinois am 17 Mai 2023
I ended up figuring out a solution to my own issue but it does require administrative permissions to do it. As I suspected.
The solution was to add the path to the installation of sh.exe system path.
If anyone finds a solution that doesnt involve changing your system path please post it!

Weitere Antworten (0)

Kategorien

Mehr zu Source Control finden Sie in Help Center und File Exchange

Produkte


Version

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by