git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bug or just a mistake : --shallow-exclude parameter behavior anomalies in Git 2.45.2: "no commits selected" and "ambiguous deepen-not" errors
@ 2025-02-20  8:26 bolide2005
  2025-02-24 15:27 ` Elijah Newren
  0 siblings, 1 reply; 7+ messages in thread
From: bolide2005 @ 2025-02-20  8:26 UTC (permalink / raw)
  To: git@vger.kernel.org

When using git clone with --shallow-exclude parameter (specifying branch name or existing commit SHA-1), two different errors occur:




Case 1: git clone --shallow-exclude=master <repo-url>



Error: fatal: no commits selected for shallow requests





Case 2: git clone --shallow-exclude=ef5974fc470ad7a08f9b58dcd78724e9329910db <repo-url>



Error: git upload-pack: ambiguous deepen-not: deepen-not ef5974fc470ad7a08f9b58dcd78724e9329910db





Git Version: 2.45.2 (Confirmed on Centos 7)




bolide2005@163.com



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-09-17  2:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-20  8:26 Bug or just a mistake : --shallow-exclude parameter behavior anomalies in Git 2.45.2: "no commits selected" and "ambiguous deepen-not" errors bolide2005
2025-02-24 15:27 ` Elijah Newren
2025-09-16 14:50   ` --shallow-exclude=ref -> "ambiguous deepen-not" error Philipp Hahn
2025-09-16 17:03     ` D. Ben Knoble
2025-09-16 17:57       ` Philipp Hahn
2025-09-16 20:34         ` Ben Knoble
2025-09-17  2:54     ` Elijah Newren

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).