Why Does MATLAB R2024a Show “Repository Path *** Is Not Owned by Current User” When Verifying a Remote Repository?
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 17 de Dic. de 2025 a las 0:00
Respondida: MathWorks Support Team
el 17 de Dic. de 2025 a las 1:40
When verifying a remote repository in MATLAB R2024a, the error “repository path *** is not owned by current user” occurs.
Environment: repository on an on-premises server, client PC logged in as a local user, MATLAB R2024a, Git for Windows and Credential Helper installed.
Running git config --global --add safe.directory does not resolve the issue, though the setting is confirmed in .gitconfig.
The error does not occur in MATLAB R2021a, suggesting this is specific to R2024a.
Respuesta aceptada
MathWorks Support Team
el 17 de Dic. de 2025 a las 0:00
Yes this workflow worked in 21a because safe directory checks didn't exist in Git then.
Can they try disabling the safe directory check:
git config --global --add safe.directory "*"
That should work. Then check whether the path in this error:
repository path *** is not owned by current user (-1x7)
matches exactly the one in the global Git config, even with case. How is it prefixed? Is there a forward slash, or is it a UNC path?
The user can also try setting the safe directory config option using this MATLAB command:
matlab.git.addSafeDirectory("***")
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Source Control en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!