Execute hooks and git fetch in subshells