{"thread":{"id":"57731","subject":"Git Bug Report","startedAt":"2022-04-14T07:22:41Z","lastAt":"2022-04-14T07:22:41Z","messageCount":1,"participants":["Randall Alfaro"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"453637","messageId":"CACuRj-gYKw0Qc6utRFNoRtKR8NrFeuaSoH-fbQpqfHQ+fxomKQ@mail.gmail.com","threadId":"57731","inReplyTo":null,"subject":"Git Bug Report","fromName":"Randall Alfaro","fromEmail":"ra.kamuk@gmail.com","sentAt":"2022-04-14T07:22:27Z","receivedAt":"2022-04-14T07:22:41Z","isPatch":false,"sender":{"key":"ra.kamuk@gmail.com","avatar":null},"body":"Hello Git Community.\n\nWhile using the Git tool on windows and a custom path for a private\nSSH (due to some policies and guidelines I've got to follow), I\nencountered a particular issue.\n\nI think this is related to a bug, I attach the template generated by\ngit bugreport down below.\nRegards!\nRandall Alfaro\n\n\nThank 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)\nR/ Set up GIT_SSH_COMMAND or core.sshCommand\n\nWhat did you expect to happen? (Expected behavior)\nR/ To be able to fetch/pull/push\n\nWhat happened instead? (Actual behavior)\nR/ \"Disallowed command\" was obtained by the server\n\nWhat's different between what you expected and what actually happened?\nR/ Any GIT command worked.\n\nAnything else you want to add:\nWhile debugging and troubleshooting, I noticed that the command \"git-upload-pack\" was getting sent two times. This is the\ncommand sent to the server after connecting to ssh (with -vvv)\ngit-upload-pack '<PRIVATE PATH>' -o SendEnv=GIT_PROTOCOL -p <PRIVATE_PORT> git@<PRIVATE URL> git-upload-pack '<PRIVATE PATH>'\n\nAfter debugging as well the normal behavior when ssh is used but without GIT_SSH_COMMAND or core.sshCommand (by using the .ssh folder and config),\nthe command is indeed only sent one time.\n\nMy hypothesis is that this might be a bug, and sending the command two times might be causing GitLab to respond with the \"Disallowed command\"\nerror.\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.35.2.windows.1\ncpu: x86_64\nbuilt from commit: 518ccba2352ce721cabbbf2933869c3c3313d1c3\nsizeof-long: 4\nsizeof-size_t: 8\nshell-path: /bin/sh\nfeature: fsmonitor--daemon\nuname: Windows 10.0 19042 \ncompiler info: gnuc: 11.2\nlibc info: no libc information available\n$SHELL (typically, interactive shell): <unset>\n\n\n[Enabled Hooks]\n"}]}