From b2f5375fcf160ce6c55f760e488d9f02a605743e Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Tue, 16 Apr 2019 13:07:27 -0500 Subject: [PATCH] add a grep to be sure we only check the origin remote (no forks) --- get_sources.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get_sources.sh b/get_sources.sh index 577ac1d..80c4b53 100755 --- a/get_sources.sh +++ b/get_sources.sh @@ -181,7 +181,7 @@ else else branches=("${branches[@]}" "$branch") fi - done <<< "$(git branch -r --contains HEAD | sed 's#origin/##g')" + done <<< "$(git branch -r --contains HEAD | grep '^\s\+origin/'| sed 's#origin/##g')" fi while read -r fsha fname ; do if [ ".${fsha}" = ".da39a3ee5e6b4b0d3255bfef95601890afd80709" ]; then