OSDN Git Service

Merge tag 'v2.12.4' into maint
authorJunio C Hamano <gitster@pobox.com>
Tue, 1 Aug 2017 19:27:31 +0000 (12:27 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 1 Aug 2017 19:27:31 +0000 (12:27 -0700)
1  2 
cache.h
connect.c
path.c

diff --cc cache.h
Simple merge
diff --cc connect.c
+++ b/connect.c
@@@ -856,11 -799,14 +864,14 @@@ struct child_process *git_connect(int f
                                return NULL;
                        }
  
+                       if (looks_like_command_line_option(ssh_host))
+                               die("strange hostname '%s' blocked", ssh_host);
                        ssh = get_ssh_command();
 -                      if (!ssh) {
 -                              const char *base;
 -                              char *ssh_dup;
 -
 +                      if (ssh)
 +                              handle_ssh_variant(ssh, 1, &port_option,
 +                                                 &needs_batch);
 +                      else {
                                /*
                                 * GIT_SSH is the no-shell version of
                                 * GIT_SSH_COMMAND (and must remain so for
diff --cc path.c
Simple merge