`git submodule update` doesn't update to HEAD, it updates to the designated version of the module. To update to head this should be sufficient and non-destructive:

```bash
git checkout master
git pull
```
You'll need to chdir to the submodule directory first, but it looks like you're already doing that in the task.