git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Bug or just a mistake : --shallow-exclude parameter behavior anomalies in Git 2.45.2: "no commits selected" and "ambiguous deepen-not" errors

From
Bbolide2005@163.com <bolide2005@163.com>
Date
Feb 20, 2025, 08:26 UTC
Message-ID
<2025022016263355354612@163.com>
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
Next: Elijah Newren
Message 1 of 8 in “Bug or just a mistake : --shallow-exclude parameter behavior anomalies in Git 2.45.2: "no commits selected" and "ambiguous deepen-not" errors”
  1. bolide2005@163.comFeb 20, 2025
  2. Elijah NewrenFeb 24, 2025
  3. Philipp HahnSep 16, 2025
  4. D. Ben KnobleSep 16, 2025
  5. Philipp HahnSep 16, 2025
  6. Ben KnobleSep 16, 2025
  7. Elijah NewrenSep 17, 2025
  8. Erik Cervin EdinOct 21, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.