bulk-update-subtrees.sh 284 B

12345678910111213
  1. #!/bin/bash
  2. set -e
  3. if [ "$(git rev-parse --show-prefix)" != "" ]; then
  4. echo "Must be in root of git repo!"
  5. exit
  6. fi
  7. for file in **/.gitsubtree; do
  8. subtree="$(dirname "${file}")"
  9. echo -e "\n\nUpdating ${subtree}..."
  10. bash .utils/update-subtree.sh "${subtree}"
  11. done