From b2f5375fcf160ce6c55f760e488d9f02a605743e Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Apr 16 2019 18:10:24 +0000 Subject: add a grep to be sure we only check the origin remote (no forks) --- 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