You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
226 B

  1. #!/bin/sh
  2. cd "$(dirname "$0")"
  3. if [ "$(git ls-files -md)" ]; then
  4. updated=true
  5. git stash -q
  6. else
  7. updated=false
  8. fi
  9. echo "== $PWD =="
  10. git pull -q --rebase
  11. if $updated; then
  12. git stash pop -q
  13. fi
  14. [ $# -eq 0 ] || exec "$@"