Atualize o submódulo Git para a confirmação mais recente na origem

Tenho um projeto com um submódulo Git. É de um URL ssh: // ... e está no commit A. O commit B foi enviado para esse URL, e eu quero que o submódulo recupere o commit e mude para el

Agora, meu entendimento é quegit submodule update deve fazer isso, mas não. Não faz nada (sem saída, código de saída com êxito). Aqui está um exemplo:

$ mkdir foo
$ cd foo
$ git init .
Initialized empty Git repository in /.../foo/.git/
$ git submodule add ssh://user@host/git/mod mod
Cloning into mod...
user@host's password: hunter2
remote: Counting objects: 131, done.
remote: Compressing objects: 100% (115/115), done.
remote: Total 131 (delta 54), reused 0 (delta 0)
Receiving objects: 100% (131/131), 16.16 KiB, done.
Resolving deltas: 100% (54/54), done.
$ git commit -m "Hello world."
[master (root-commit) 565b235] Hello world.
 2 files changed, 4 insertions(+), 0 deletions(-)
 create mode 100644 .gitmodules
 create mode 160000 mod
# At this point, ssh://user@host/git/mod changes; submodule needs to change too.
$ git submodule init
Submodule 'mod' (ssh://user@host/git/mod) registered for path 'mod'
$ git submodule update
$ git submodule sync
Synchronizing submodule url for 'mod'
$ git submodule update
$ man git-submodule 
$ git submodule update --rebase
$ git submodule update
$ echo $?
0
$ git status
# On branch master
nothing to commit (working directory clean)
$ git submodule update mod
$ ...

Eu também tenteigit fetch mod, que parece fazer uma busca (mas não pode, porque não está solicitando uma senha!), masgit log egit show negar a existência de novos commit. Até agora eu apenas estiverm no módulo e adicionando-o novamente, mas isso é errado em princípio e tedioso na prátic

questionAnswers(11)

yourAnswerToTheQuestion