git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Timothy M. Redaelli" <timothy.redaelli@gmail.com>
To: git@vger.kernel.org
Subject: Force git submodule update --remote for some branches
Date: Fri, 28 Nov 2014 18:54:57 +0100	[thread overview]
Message-ID: <5478B6F1.6070200@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 409 bytes --]

Hi,
I have a repository with a submodule and I'd like to force git to
checkout the LAST version of the submodule and not the stored one (like
git submodule update --remote), but only on some branches and without
the need to remember to add --remote every time you are on this branch.

Is there any way to do it? Maybe using .gitmodules?

Thanks

-- 
Timothy M. Redaelli
Arch Linux Trusted User


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

             reply	other threads:[~2014-11-28 17:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-28 17:54 Timothy M. Redaelli [this message]
2014-11-30 14:52 ` Force git submodule update --remote for some branches Jens Lehmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5478B6F1.6070200@gmail.com \
    --to=timothy.redaelli@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).