{"thread":{"id":"62054","subject":"`git remote prune <remote>…​` (equivalent to git fetch --prune <remote> except that no new references will be fetched) ignores `fetch.pruneTags` (and `git fetch --dry-run` prints same tag twice)","startedAt":"2024-09-04T00:08:31Z","lastAt":"2024-09-04T00:08:31Z","messageCount":1,"participants":["Han Jiang"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"502082","messageId":"CANrWfmR1nTDF-ts3n2PpH2C+uvBzDm7ZEXh0StuwPZRmm80T1A@mail.gmail.com","threadId":"62054","inReplyTo":null,"subject":"`git remote prune <remote>…​` (equivalent to git fetch --prune <remote> except that no new references will be fetched) ignores `fetch.pruneTags` (and `git fetch --dry-run` prints same tag twice)","fromName":"Han Jiang","fromEmail":"jhcarl0814@gmail.com","sentAt":"2024-09-04T00:08:19Z","receivedAt":"2024-09-04T00:08:31Z","isPatch":false,"sender":{"key":"jhcarl0814@gmail.com","avatar":"https://avatars.githubusercontent.com/u/5171262?v=4"},"body":"Thank you for filling out a Git bug report!\nPlease answer the following questions to help us understand your issue.\n\nWhat did you do before the bug happened? (Steps to reproduce your issue)\n\ncd '/'; cd '/'; rm --force --recursive -- './test_git'; mkdir \"$_\"; cd \"$_\";\nmkdir --parents -- './server' './client';\ngit -C './server' init --bare './repo.git'\ngit --git-dir='./server/repo.git' --work-tree='.' commit --allow-empty\n-m \"$((++number))\"\ngit -C './server/repo.git' branch branch1; git -C './server/repo.git'\nbranch branch2; git -C './server/repo.git' tag tag1; git -C\n'./server/repo.git' tag tag2\n\ngit -C './client' init './repo'\ngit -C './client/repo' remote add server 'file://'\"$(realpath\n'./server/repo.git')\"\ngit -C './client/repo' remote --verbose\ngit -C './client/repo' config list --local --show-scope --show-origin\ngit -C './client/repo' branch --list --all --verbose --verbose\ngit -C './client/repo' tag --list\n\ngit -C './client/repo' fetch --all\ngit -C './client/repo' branch --list --all --verbose --verbose\ngit -C './client/repo' tag --list\n\ngit -C './server/repo.git' branch --delete branch1; git -C\n'./server/repo.git' branch branch3; git -C './server/repo.git' tag\n--delete tag1; git -C './server/repo.git' tag tag3\ngit -C './client/repo' remote prune --dry-run server\ngit -C './client/repo' fetch --prune --dry-run server\ngit -C './client/repo' config set --local 'fetch.pruneTags' 'true'\ngit -C './client/repo' remote prune --dry-run server\ngit -C './client/repo' fetch --prune --dry-run server\ngit -C './client/repo' config unset --local 'fetch.pruneTags'\ngit -C './client/repo' config set --local --append\n'remote.server.fetch' '+refs/tags/*:refs/tags/*'\ngit -C './client/repo' remote prune --dry-run server\ngit -C './client/repo' fetch --prune --dry-run server\n\ngit -C './client/repo' remote prune server\ngit -C './client/repo' branch --list --all --verbose --verbose\ngit -C './client/repo' tag --list\n\nWhat did you expect to happen? (Expected behavior)\n\nhttps://git-scm.com/docs/git-remote says:\n`git remote prune <remote>…` is equivalent to `git fetch --prune\n<remote>`, except that no new references will be fetched.\nso:\n`git remote prune <remote>…` should prune tags when `fetch.pruneTags` is `true`.\n(`git remote prune <remote>…` should prune tags when\n`remote.server.fetch` has `+refs/tags/*:refs/tags/*`.)\n\n`git fetch --dry-run` should print same tag once.\n\nWhat happened instead? (Actual behavior)\n\nSetting `fetch.pruneTags` to `true` does not make `git remote prune\n<remote>…` prune tags.\n(`git remote prune <remote>…` prunes tags when `remote.server.fetch`\nhas `+refs/tags/*:refs/tags/*`.)\n\n`git fetch --dry-run` prints same tag twice.\n\nWhat's different between what you expected and what actually happened?\n\nAnything else you want to add:\n\nPlease review the rest of the bug report below.\nYou can delete any lines you don't wish to share.\n\n\n[System Info]\ngit version:\ngit version 2.46.0.windows.1\ncpu: x86_64\nbuilt from commit: 2e6a859ffc0471f60f79c1256f766042b0d5d17d\nsizeof-long: 4\nsizeof-size_t: 8\nshell-path: D:/git-sdk-64-build-installers/usr/bin/sh\nfeature: fsmonitor--daemon\nlibcurl: 8.9.0\nOpenSSL: OpenSSL 3.2.2 4 Jun 2024\nzlib: 1.3.1\nuname: Windows 10.0 22631\ncompiler info: gnuc: 14.1\nlibc info: no libc information available\n$SHELL (typically, interactive shell): C:\\Program Files\\Git\\usr\\bin\\bash.exe\n\n\n[Enabled Hooks]\nnot run from a git repository - no hooks to show\n"}]}