update-subtree.sh 296 B

1234567891011
  1. #!/bin/bash
  2. set -e
  3. path=${GIT_PREFIX%/}
  4. read repo branch subdir < ${GIT_PREFIX}.gitsubtree
  5. if [ "${subdir}" = "" ]; then
  6. git subtree pull -P ${path} ${repo} ${branch} -m "Merge ${path} from ${repo}"
  7. else
  8. bash .utils/subtree-subdir-helper.sh ${path} ${repo} ${branch} ${subdir} merge
  9. fi