-update_repo()
-{
- local valid="0"
-
- if [ ${#} -ne 1 ]; then
- echo "Missing repository name"
- exit 1
- fi
-
- local r=${1}
-
- echo -n "Repo ${r}: "
-
- pushd "${r}" 1> /dev/null
- b=${branch_from}
-
- exists=$(git show-ref refs/heads/${b})
- if [ -n "$exists" ]; then
- vco -q ${b} 1> /dev/null
-
- if [ ${?} -ne 0 ]; then
- rc=1
- echo "${b} (error)"
- else
- echo "${b}"
- fi
- else
- echo "${b} (not found)"
- rc=1
- fi
-
- popd 1> /dev/null
-}
-