Commit 9270771f authored by Jan-Gerrit Richter's avatar Jan-Gerrit Richter

bugfix: if git not in windows path, no time is wasted

parent 82fdc660
...@@ -159,7 +159,7 @@ classdef itaSuper < itaMeta ...@@ -159,7 +159,7 @@ classdef itaSuper < itaMeta
%% Add history line %% Add history line
commitID = ita_git_getMasterCommitHash; commitID = ita_git_getMasterCommitHash;
if ~isempty(commitID) if ~(isempty(commitID) || strcmp(commitID,'0'))
this = ita_metainfo_add_historyline(this,'GitVersion',commitID); this = ita_metainfo_add_historyline(this,'GitVersion',commitID);
end end
end end
......
...@@ -65,7 +65,7 @@ try ...@@ -65,7 +65,7 @@ try
commitID = strrep(commitID,'[\n\r]+',''); commitID = strrep(commitID,'[\n\r]+','');
else else
ita_verbose_info(sprintf('Git Hash Failed: %s',commitID), 1); ita_verbose_info(sprintf('Git Hash Failed: %s',commitID), 1);
commitID = ''; commitID = '0';
end end
cd(workingDir); cd(workingDir);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment