Merge branch 'maint-2.7' into maint-2.8
authorJunio C Hamano <gitster@pobox.com>
Fri, 5 May 2017 04:05:03 +0000 (13:05 +0900)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 May 2017 04:05:03 +0000 (13:05 +0900)
1  2 
Documentation/git.txt
shell.c
diff --combined Documentation/git.txt
index 5a10e9b4a06cbf34ff3d15032fe7f7d13ed0c3ba,bf9b6c8c87799b4fc46c7bfc3b899c023b9d8f1c..2cfad870fc59a6b4960291ae78104cd432a4f823
@@@ -43,26 -43,20 +43,29 @@@ unreleased) version of Git, that is ava
  branch of the `git.git` repository.
  Documentation for older releases are available here:
  
- * link:v2.7.3/git.html[documentation for release 2.7.3]
 +* link:v2.8.4/git.html[documentation for release 2.8.4]
 +
 +* release notes for
 +  link:RelNotes/2.8.4.txt[2.8.4],
 +  link:RelNotes/2.8.3.txt[2.8.3],
 +  link:RelNotes/2.8.2.txt[2.8.2],
 +  link:RelNotes/2.8.1.txt[2.8.1],
 +  link:RelNotes/2.8.0.txt[2.8].
 +
+ * link:v2.7.5/git.html[documentation for release 2.7.5]
  
  * release notes for
+   link:RelNotes/2.7.5.txt[2.7.5],
+   link:RelNotes/2.7.4.txt[2.7.4],
    link:RelNotes/2.7.3.txt[2.7.3],
    link:RelNotes/2.7.2.txt[2.7.2],
    link:RelNotes/2.7.1.txt[2.7.1],
    link:RelNotes/2.7.0.txt[2.7].
  
- * link:v2.6.6/git.html[documentation for release 2.6.6]
+ * link:v2.6.7/git.html[documentation for release 2.6.7]
  
  * release notes for
+   link:RelNotes/2.6.7.txt[2.6.7],
    link:RelNotes/2.6.6.txt[2.6.6],
    link:RelNotes/2.6.5.txt[2.6.5],
    link:RelNotes/2.6.4.txt[2.6.4],
    link:RelNotes/2.6.1.txt[2.6.1],
    link:RelNotes/2.6.0.txt[2.6].
  
- * link:v2.5.5/git.html[documentation for release 2.5.5]
+ * link:v2.5.6/git.html[documentation for release 2.5.6]
  
  * release notes for
+   link:RelNotes/2.5.6.txt[2.5.6],
    link:RelNotes/2.5.5.txt[2.5.5],
    link:RelNotes/2.5.4.txt[2.5.4],
    link:RelNotes/2.5.3.txt[2.5.3],
    link:RelNotes/2.5.1.txt[2.5.1],
    link:RelNotes/2.5.0.txt[2.5].
  
- * link:v2.4.11/git.html[documentation for release 2.4.11]
+ * link:v2.4.12/git.html[documentation for release 2.4.12]
  
  * release notes for
+   link:RelNotes/2.4.12.txt[2.4.12],
    link:RelNotes/2.4.11.txt[2.4.11],
    link:RelNotes/2.4.10.txt[2.4.10],
    link:RelNotes/2.4.9.txt[2.4.9],
@@@ -1136,7 -1132,9 +1141,7 @@@ of clones and fetches
            connection (or proxy, if configured)
  
          - `ssh`: git over ssh (including `host:path` syntax,
 -          `git+ssh://`, etc).
 -
 -        - `rsync`: git over rsync
 +          `ssh://`, etc).
  
          - `http`: git over http, both "smart http" and "dumb http".
            Note that this does _not_ include `https`; if you want both,
diff --combined shell.c
index c5439a63e9678e1dc3dfa7d4e1f2a97c331e54d6,c3bf8ec38a3e310a87df3831fb079094462abd81..2af80c68bff3950ddd54ebaf75b2cd596815f79a
+++ b/shell.c
@@@ -13,7 -13,7 +13,7 @@@ static int do_generic_cmd(const char *m
        const char *my_argv[4];
  
        setup_path();
-       if (!arg || !(arg = sq_dequote(arg)))
+       if (!arg || !(arg = sq_dequote(arg)) || *arg == '-')
                die("bad argument");
        if (!starts_with(me, "git-"))
                die("bad command");
@@@ -88,7 -88,7 +88,7 @@@ static void run_shell(void
                int count;
  
                fprintf(stderr, "git> ");
 -              if (strbuf_getline(&line, stdin, '\n') == EOF) {
 +              if (strbuf_getline_lf(&line, stdin) == EOF) {
                        fprintf(stderr, "\n");
                        strbuf_release(&line);
                        break;