# git push --recurse-submodules=on-demand with submodule push tag

2 messages from 2013-01-08 to 2013-01-08. Participants: 乙酸鋰, Jens Lehmann.
Thread: https://gitlist.dev/t/32559

## 乙酸鋰, 2013-01-08 16:35

Subject: git push --recurse-submodules=on-demand with submodule push tag
Message-ID: <CAHtLG6TDqqG09WBkuWzGeWUGog6GOrWQZZtbF5xx_m4ishvzyQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAHtLG6TDqqG09WBkuWzGeWUGog6GOrWQZZtbF5xx_m4ishvzyQ%40mail.gmail.com

```
Hi,

In superproject, can I call git push --recurse-submodules=on-demand
that pushes submodule with the submodule's tags?
Very often I change version and tag the submodule
and change version and tag the superproject at the same time.

```

## Jens Lehmann, 2013-01-08 17:33

Subject: Re: git push --recurse-submodules=on-demand with submodule push tag
Message-ID: <50EC5874.6080208@web.de>
URL: https://gitlist.dev/e/50EC5874.6080208%40web.de
In-Reply-To: <CAHtLG6TDqqG09WBkuWzGeWUGog6GOrWQZZtbF5xx_m4ishvzyQ@mail.gmail.com>

```
Am 08.01.2013 17:35, schrieb 乙酸鋰:
> In superproject, can I call git push --recurse-submodules=on-demand
> that pushes submodule with the submodule's tags?

As that seems to call a plain "git push" in the submodule I think
the tags won't be pushed by this command.

> Very often I change version and tag the submodule
> and change version and tag the superproject at the same time.

Won't "git submodule foreach 'git push --tags'" do what you want?

```
