1
0
Fork 0
mirror of synced 2024-06-01 06:41:12 -04:00
zimfw/tools/zim_update
Eric Nielsen 79750fda6d Pull latest submodules master commit when updating
Instead of using `git submodule update`, that will keep the commit
specified in the containing repository index.
2016-09-24 20:46:01 -05:00

12 lines
276 B
Plaintext

#
# zim_update - update the zim repository
#
cd ${ZDOTDIR:-${HOME}/.zim}
# this is the cleanest way I know of to update a repository
git remote update -p
git merge --ff-only @\{u\}
# and update the submodules
git submodule foreach --quiet --recursive git pull origin master