We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3fc112 commit 339cdfcCopy full SHA for 339cdfc
cortexlab/+git/update.m
@@ -36,7 +36,12 @@ function update(scheduled)
36
% Get the path to the Git exe
37
gitexepath = getOr(dat.paths, 'gitExe');
38
if isempty(gitexepath)
39
- [~,gitexepath] = system('where git'); % todo: this doesn't always work
+ [status, gitexepath] = system('where git');
40
+ if status == 1
41
+ error(['Could not find the git .exe location. Please find and ',...
42
+ 'add the location to the "dat.paths" file. For example, like so:',...
43
+ ' p.gitExe = ''C:\Program Files\Git\cmd\git.exe''']);
44
+ end
45
end
46
gitexepath = ['"', strtrim(gitexepath), '"'];
47
0 commit comments