Skip to contentSkip to conversation

build: make check_git() give more information in verbose mode

PATCH New Vincent McIntyre 1 participant 1 message Jun 1, 2017 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 build: make check_git() give more information in verbose mode

While debugging another issue I found this change helpful.

---
 build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
build +2 -1
index d7f51c2..4457a73 100755
@@ -303,12 +303,13 @@ sub check_git($$)
 	my $cmd = shift;
 	my $remote = shift;
 
-	print "\$ git --git-dir media/.git $cmd\n" if ($level);
+	print "\$ git --git-dir media/.git $cmd (checking for '$remote')\n" if ($level);
 	open IN, "git --git-dir media/.git $cmd|" or die "can't run git --git-dir media/.git $cmd";
 	while (<IN>) {
 		return 1 if (m/^[\*]*\s*($remote)\n$/);
 	}
 	close IN;
+	print "check failed\n" if ($level);
 	return 0;
 }
 
Signature · 1 line
2.7.4