필터 지우기
필터 지우기

How to change MATLAB's sh.exe path?

조회 수: 12 (최근 30일)
DanielFromIllinois
DanielFromIllinois 2023년 5월 16일
답변: DanielFromIllinois 2023년 5월 17일
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.

채택된 답변

DanielFromIllinois
DanielFromIllinois 2023년 5월 17일
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!

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by