threads / discuss / 51101

Setting submodule.recurse true can lead to loose of changes

Subject: Setting submodule.recurse true can lead to loose of changes

## tl;dr

One message between May 15, 2019 and May 15, 2019.

replies: 0people: 1as markdown or json

Stefan Sonski· May 15, 2019, 14:02 UTC · lore
Hi all,

I discovered a potential bug regarding submodules and the use of rebase and stash.

When setting the configuration submodule.recurse true, doing changes in the super project and also given submodule, these changes are lost, when doing a rebase or stash. The stash even shows these changes with stash show -p, but trying to apply them, leads also to a lost of these changes.

Removing submodule.recurse and setting fetch.recurseSubmodules and push.recurseSubmodules fixes this problem, because the submodule is not touched.

Stefan

← back to recent threads