Git post push hook for updating supermodule when submodule is updated
- Create file named git-push-wh with the following content and add it to your path
#!/bin/sh
GIT_DIR_="$(git rev-parse --git-dir)"
BRANCH="$(git rev-parse --symbolic --abbrev-ref $(git symbolic-ref HEAD))"