switch to git branch

This commit is contained in:
abejgonzalez
2019-06-03 09:41:56 -07:00
parent eb93ace725
commit bbaa8d58b0

View File

@@ -18,7 +18,7 @@ search () {
echo "Running check on submodule $submodule in $dir"
hash=$(echo "$status" | grep $submodule | awk '{print$1}' | grep -o "[[:alnum:]]*")
echo "Searching for $hash in origin/master of $submodule"
git -C $dir/$submodule log origin/master | grep "$hash" # needs init'ed submodules
git -C $dir/$submodule branch -r --contains "$hash" | grep "origin/master" # needs init'ed submodules
done
}