From a022ddfcca8948bc6556d116d2ba5595dff5d0e8 Mon Sep 17 00:00:00 2001 From: Lantao Liu Date: Fri, 5 Apr 2019 10:00:17 -0700 Subject: [PATCH] Support comment in vendor. Signed-off-by: Lantao Liu --- hack/utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/utils.sh b/hack/utils.sh index edb545b3b..1c94c69f7 100755 --- a/hack/utils.sh +++ b/hack/utils.sh @@ -81,7 +81,7 @@ from-vendor() { BEGIN { rc=1 } # Assume we did not find what we were looking for. // { if ($1 == REPO) { - if ($3 != "") { gsub(/http.*\/\//, "", $3); REPO = $3 }; # Override repo. + if ($3 != "" && $3 !~ /#.*/ ) { gsub(/http.*\/\//, "", $3); REPO = $3 }; # Override repo. printf("%s_VERSION=%s; %s_REPO=%s\n", WHAT, $2, WHAT, REPO); rc=0; # Note success for use in END block. exit # No point looking further.