public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] [media_build] make check_git() give more information in verbose mode (resend)
@ 2017-06-10  2:14 Vincent McIntyre
  0 siblings, 0 replies; only message in thread
From: Vincent McIntyre @ 2017-06-10  2:14 UTC (permalink / raw)
  To: linux-media


While debugging another issue I found this change helpful.
Original send Date: Thu, 1 Jun 2017 20:44:27 +1000



Make check_git() give more information in verbose mode.

Signed-off-by: Vincent McIntyre <vincent.mcintyre@gmail.com>
---
 build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/build b/build
index d7f51c2..4457a73 100755
--- a/build
+++ b/build
@@ -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;
 }
 
-- 
2.7.4


----- End forwarded message -----

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-10  2:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-10  2:14 [patch] [media_build] make check_git() give more information in verbose mode (resend) Vincent McIntyre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox