1
0
Fork 0
mirror of synced 2024-06-25 18:01:09 -04:00
zimfw/tools/zim_update
Eric Nielsen 58aae6a896 [meta] update: Pull latest submodule commit
Instead of using `git submodule update`, that will keep the commit
specified in the containing repository index.

Closes #80
2016-09-27 15:59:58 -07: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