add a grep to be sure we only check the origin remote (no forks)

This commit is contained in:
Brian Stinson 2019-04-16 13:07:27 -05:00
parent 7707c61e83
commit b2f5375fcf

View file

@ -181,7 +181,7 @@ else
else else
branches=("${branches[@]}" "$branch") branches=("${branches[@]}" "$branch")
fi 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 fi
while read -r fsha fname ; do while read -r fsha fname ; do
if [ ".${fsha}" = ".da39a3ee5e6b4b0d3255bfef95601890afd80709" ]; then if [ ".${fsha}" = ".da39a3ee5e6b4b0d3255bfef95601890afd80709" ]; then