{"thread":{"id":"62053","subject":"`git remote show <name>…​` does not show all branches capable of `git push` when `push.default=upstream` and behaves as if `push.default=simple`","startedAt":"2024-09-03T23:12:24Z","lastAt":"2024-09-03T23:12:24Z","messageCount":1,"participants":["Han Jiang"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"502080","messageId":"CANrWfmQjDMvtXwbmWe4HcjhG0kjnv0J4HhZo6Pv7pyCFHBWLAw@mail.gmail.com","threadId":"62053","inReplyTo":null,"subject":"`git remote show <name>…​` does not show all branches capable of `git push` when `push.default=upstream` and behaves as if `push.default=simple`","fromName":"Han Jiang","fromEmail":"jhcarl0814@gmail.com","sentAt":"2024-09-03T23:12:12Z","receivedAt":"2024-09-03T23:12:24Z","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'\nbranch_default_path=\"$(git -C './server/repo.git' symbolic-ref HEAD)\"\nbranch_default_name=\"${branch_default_path#'refs/heads/'}\"\ngit --git-dir='./server/repo.git' --work-tree='.' commit --allow-empty\n-m \"$((++number))\"\n\ngit -C './client' init './repo'\ngit -C './client/repo' remote add server 'file://'\"$(realpath\n'./server/repo.git')\"\ngit -C './client/repo' config list --local --show-scope --show-origin\ngit -C './client/repo' branch --list --all --verbose --verbose\ngit -C './client/repo' remote --verbose show server\n\ngit -C './client/repo' fetch --all\ngit -C './client/repo' branch --list --all --verbose --verbose\ngit -C './client/repo' remote --verbose show server\n\ngit -C './client/repo' checkout \"$branch_default_name\"\ngit -C './client/repo' checkout -b \"$branch_default_name\"1\nserver/\"$branch_default_name\"\ngit -C './client/repo' checkout -b \"$branch_default_name\"2\nserver/\"$branch_default_name\"\ngit -C './client/repo' config list --local --show-scope --show-origin\ngit -C './client/repo' branch --list --all --verbose --verbose\n\ngit -C './client/repo' checkout \"$branch_default_name\"; git -C\n'./client/repo' push\ngit -C './client/repo' checkout \"$branch_default_name\"1; git -C\n'./client/repo' push\ngit -C './client/repo' checkout \"$branch_default_name\"2; git -C\n'./client/repo' push\ngit -C './client/repo' remote --verbose show server\n\ngit -C './client/repo' config set --local 'push.default' 'upstream'\ngit -C './client/repo' checkout \"$branch_default_name\"; git -C\n'./client/repo' push\ngit -C './client/repo' checkout \"$branch_default_name\"1; git -C\n'./client/repo' push\ngit -C './client/repo' checkout \"$branch_default_name\"2; git -C\n'./client/repo' push\ngit -C './client/repo' remote --verbose show server\n\nWhat did you expect to happen? (Expected behavior)\n\nThe last `git -C './client/repo' remote --verbose show server` outputs:\n  Local ref configured for 'git push':\n    main pushes to main (up to date)\n    main1 pushes to main (up to date)\n    main2 pushes to main (up to date)\n\nWhat happened instead? (Actual behavior)\n\nThe last `git -C './client/repo' remote --verbose show server` outputs:\n  Local ref configured for 'git push':\n    main pushes to main (up to date)\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"}]}