git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
* Possible bug with shallow git submodules
@ 2020-09-21  4:05 Jack Pearson
  0 siblings, 0 replies; only message in thread
From: Jack Pearson @ 2020-09-21  4:05 UTC (permalink / raw)
  To: git

When I create a shallow submodule, the submodule doesn't stay shallow after the submodule's remote changes if the submodule is re-fetched as a result of fresh clone, or a result of manually deleting the submodule's .git folder.

Detailed reproduction instructions here:
https://gist.github.com/jpear1/0ffc28e8167d00504fba54d50ec4848d


Maybe related is another problem I've noticed with git submodules:

I'm unable to discard commits by moving the tracked commit backwards (with git reset) in a shallow submodule (the .git/modules/<mod-name>/shallow file doesn't update properly).

Basically it seems like the submodule is using the latest shallow "root" it can find in the branch's history of gitlinks and not allowing me to use anything but that. I'm not sure if this is really what's going on though.

I go into more detail in an SO post here:
https://stackoverflow.com/questions/63976876

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-21  4:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-21  4:05 Possible bug with shallow git submodules Jack Pearson

git@vger.kernel.org list mirror (unofficial, one of many)

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://public-inbox.org/git
	git clone --mirror http://ou63pmih66umazou.onion/git
	git clone --mirror http://czquwvybam4bgbro.onion/git
	git clone --mirror http://hjrcffqmbrq6wope.onion/git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 git git/ https://public-inbox.org/git \
		git@vger.kernel.org
	public-inbox-index git

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.version-control.git
	nntp://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/inbox.comp.version-control.git
	nntp://ie5yzdi7fg72h7s4sdcztq5evakq23rdt33mfyfcddc5u3ndnw24ogqd.onion/inbox.comp.version-control.git
	nntp://4uok3hntl7oi7b4uf4rtfwefqeexfzil2w6kgk2jn5z2f764irre7byd.onion/inbox.comp.version-control.git
	nntp://news.gmane.io/gmane.comp.version-control.git
 note: .onion URLs require Tor: https://www.torproject.org/

code repositories for project(s) associated with this inbox:

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

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git