Skip to content
  • Jonathan Nieder's avatar
    ssh: 'simple' variant does not support --port · 3fa5e0d0
    Jonathan Nieder authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    When trying to connect to an ssh:// URL with port explicitly specified
    and the ssh command configured with GIT_SSH does not support such a
    setting, it is less confusing to error out than to silently suppress
    the port setting and continue.
    
    This requires updating the GIT_SSH setting in t5603-clone-dirname.sh.
    That test is about the directory name produced when cloning various
    URLs.  It uses an ssh wrapper that ignores all its arguments but does
    not declare that it supports a port argument; update it to set
    GIT_SSH_VARIANT=ssh to do so.  (Real-life ssh wrappers that pass a
    port argument to OpenSSH would also support -G and would not require
    such an update.)
    
    Reported-by: default avatarWilliam Yan <wyan@google.com>
    Signed-off-by: default avatarJonathan Nieder <jrnieder@gmail.com>
    Acked-by: default avatarStefan Beller <sbeller@google.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    3fa5e0d0