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

Git 2.48. Changed behavior of the git fetch

From
DMDanila Manturov <danila.manturov@jetbrains.com>
Date
Jan 9, 2025, 11:49 UTC
Message-ID
<CAM6buW5KSDGHD7txroqVa0TN_Ou_eV-LocMy06cPy0ZGDQmY9A@mail.gmail.com>

Hello. I work in TeamCity and we have tests of our git integration running with the latest master of the git repository. Some tests started to fail since https://github.com/git/git/commit/5f212684abb66c9604e745a2296af8c4bb99961c I noticed that tags are not fetched with shallow clones. I published the test repository to GitHub and reproduced it with commands, the result is different for 2.47.1 and 2.48.rc0

git init git remote add origin git@github.com:manturovDan/repo_for_shallow_fetch.git git fetch --progress --depth=1 --recurse-submodules=no origin +fd1eb9776b5fad5cc433586f7933811c6853917d:refs/remotes/origin/main git tag | cat

RESULT: tag1 (git version 2.47.1) <empty> (git version 2.48.0.rc0.38.gff795a5c5e)

the repository log:
* commit fd1eb9776b5fad5cc433586f7933811c6853917d (tag: tag1, main)
| Author: Victory Petrenko <vbedrosova@gmail.com>
| Date:   Wed Feb 3 13:05:03 2021 +0100
|
|     recent commit
|
* commit 64195c330d99c467a142f682bc23d4de3a68551d
| Author: Victory Petrenko <vbedrosova@gmail.com>
| Date:   Wed Feb 3 13:04:44 2021 +0100
|
|     change
|
* commit a1d6299597f8d6f6d8316577c46cc8fffd657d5e (tag: tag2)
  Author: Victory Petrenko <vbedrosova@gmail.com>
  Date:   Wed Feb 3 13:04:17 2021 +0100
      initial commit
Next: Bence Ferdinandy
Message 1 of 8 in “Git 2.48. Changed behavior of the git fetch”
  1. Danila ManturovJan 9, 2025
  2. Bence FerdinandyJan 12, 2025
  3. Danila ManturovJan 13, 2025
  4. Bence FerdinandyJan 13, 2025
  5. Danila ManturovJan 21, 2025
  6. Bence FerdinandyJan 26, 2025
  7. Danila ManturovJan 27, 2025
  8. Bence FerdinandyJan 27, 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.