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
%% Add history line
commitID = ita_git_getMasterCommitHash;
if ~isempty(commitID)
if ~(isempty(commitID) || strcmp(commitID,'0'))
this = ita_metainfo_add_historyline(this,'GitVersion',commitID);
end
end
......
......@@ -65,7 +65,7 @@ try
commitID = strrep(commitID,'[\n\r]+','');
else
ita_verbose_info(sprintf('Git Hash Failed: %s',commitID), 1);
commitID = '';
commitID = '0';
end
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