ignore comments from git status to no confuse the version number parser with branch information

This commit is contained in:
2020-12-09 15:29:32 +01:00
parent af2dd1eac9
commit 2d448c56af
+2
View File
@@ -184,6 +184,8 @@ sub parse_git_output {
if ($line =~ /fatal: Not a git repository/) {
return;
}
elsif ($line =~ /^#/) {
}
elsif ($line =~ /^\?\? (.*)/) {
say STDERR "$1: not in git => version test";
$version = "test";