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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



While debugging another issue I found this change helpful.

Signed-off-by: Vincent McIntyre <vincent.mcintyre@xxxxxxxxx>
---
 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




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux