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

#!/bin/sh
cd "$(dirname "$0")"
if [ "$(git ls-files -md)" ]; then
updated=true
git stash -q
else
updated=false
fi
echo "== $PWD =="
git pull -q --rebase
if $updated; then
git stash pop -q
fi
[ $# -eq 0 ] || exec "$@"