git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: "Ulrich Windl" <Ulrich.Windl@rz.uni-regensburg.de>
To: <git@vger.kernel.org>
Subject: Q: submodules and detached HEAD
Date: Thu, 27 Feb 2020 10:43:06 +0100	[thread overview]
Message-ID: <5E578F2A020000A1000373EF@gwsmtp.uni-regensburg.de> (raw)

Hi!

I'm rather new to submodules, and I have a question on something I don't understand (git-2.12.3 from SLES12):
I had checked out tag v0.0.1 of my submodule.
When checking the status, I see:

iptables> git status
HEAD detached at v0.0.1
nothing to commit, working tree clean
iptables> git checkout v0.0.1
HEAD is now at b23fbdc... .version: 0.0.1
iptables> git checkout v0.0.2
Previous HEAD position was b23fbdc... .version: 0.0.1
HEAD is now at 5af0df5... v0.0.2: Fix issue with "xtables lock"
/iptables> git status
HEAD detached at v0.0.2
nothing to commit, working tree clean
iptables> git branch
* (HEAD detached at v0.0.2)
  master

git reflog says:
5af0df5 HEAD@{0}: checkout: moving from b23fbdc0e18e570a4d9ec4cb8826afc82e2e0b64 to v0.0.2
b23fbdc HEAD@{1}: checkout: moving from ec7dd70b59e039b49bb478a3134b713a2b0a279c to v0.0.1
ec7dd70 HEAD@{2}: checkout: moving from master to v0.0

Config submodule.iptables.branch is not set.

Who can explain?

Regards,
Ulrich



             reply	other threads:[~2020-02-27  9:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-27  9:43 Ulrich Windl [this message]
2020-02-27 17:13 ` Q: submodules and detached HEAD Junio C Hamano
     [not found] ` <23314_1582823592_5E57F8A7_23314_1178_1_xmqqsgiweyxs.fsf@gitster-ct.c.googlers.com>
2020-02-28  8:24   ` Antw: [EXT] " Ulrich Windl

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

  List information: http://vger.kernel.org/majordomo-info.html

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

  git send-email \
    --in-reply-to=5E578F2A020000A1000373EF@gwsmtp.uni-regensburg.de \
    --to=ulrich.windl@rz.uni-regensburg.de \
    --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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).