mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Git silently broke push-options over ssh?
@ 2021-10-22 17:27 Sven Strickroth
  2021-10-22 20:53 ` Jeff King
  0 siblings, 1 reply; 3+ messages in thread
From: Sven Strickroth @ 2021-10-22 17:27 UTC (permalink / raw)
  To: Junio C Hamano, git, bwilliams.eng


I'm using Git (for Windows) 2.33.1 and using push-options as described 
on <> does not 
work any more (IIRC it used to work with Git 2.16 and 2.17).

If I understood 
correctly I have to enable the Git protocol version 2 and then the push 
options should work.

Now, when I try to use push options on Windows it does not work. I tried 
to debug it:

D:\TortoiseGit>set GIT_TRACE=2
D:\TortoiseGit>set GIT_SSH=ssh.exe
D:\TortoiseGit>set GIT_SSH_VARIANT=ssh
D:\TortoiseGit>set GIT_PROTOCOL=version=2
D:\TortoiseGit>git -c protocol.version=2 -c ssh.variant=ssh -c 
ssh.command=ssh push -v -o ci.skip origin master~23:testing
17:36:06.285346 exec-cmd.c:237          trace: resolved executable dir: 
C:/Program Files/Git/mingw64/bin
17:36:06.285346 git.c:455               trace: built-in: git push -v -o 
ci.skip origin 'master~23:testing'
Pushing to
17:36:06.295270 run-command.c:666       trace: run_command: unset 
'git-receive-pack '\''tortoisegit/tortoisegit.git'\'''

As you can see, the "-o SendEnv" parameter not passed to ssh.exe and, 
therefore, I think the push option is not transferred to the server.

According to <> the 
reason is a commit that was shipped with Git 2.18 (in 2018):


How to use push options with Git over SSH?

Best regards,
  Sven Strickroth
  PGP key id F5A9D4C4 @ any key-server

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-23 14:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-22 17:27 Git silently broke push-options over ssh? Sven Strickroth
2021-10-22 20:53 ` Jeff King
2021-10-23 14:57   ` Sven Strickroth

Code repositories for project(s) associated with this public inbox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).