1
0
Fork 0
mirror of synced 2024-11-16 13:05:35 -05: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

11 lines
276 B
Text

#
# 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