1. 25 3月, 2017 6 次提交
    • J
      Merge branch 'jc/config-case-cmdline-take-2' into maint · eb4e87ce
      Junio C Hamano 提交于
      The code to parse "git -c VAR=VAL cmd" and set configuration
      variable for the duration of cmd had two small bugs, which have
      been fixed.
      This supersedes jc/config-case-cmdline topic that has been discarded.
      
      * jc/config-case-cmdline-take-2:
        config: use git_config_parse_key() in git_config_parse_parameter()
        config: move a few helper functions up
      eb4e87ce
    • J
      Merge branch 'jk/grep-no-index-fix' into maint · ea7aa5a4
      Junio C Hamano 提交于
      The code to parse the command line "git grep <patterns>... <rev>
      [[--] <pathspec>...]" has been cleaned up, and a handful of bugs
      have been fixed (e.g. we used to check "--" if it is a rev).
      
      * jk/grep-no-index-fix:
        grep: treat revs the same for --untracked as for --no-index
        grep: do not diagnose misspelt revs with --no-index
        grep: avoid resolving revision names in --no-index case
        grep: fix "--" rev/pathspec disambiguation
        grep: re-order rev-parsing loop
        grep: do not unnecessarily query repo for "--"
        grep: move thread initialization a little lower
      ea7aa5a4
    • J
      Merge branch 'jn/remote-helpers-with-git-dir' into maint · 411a1794
      Junio C Hamano 提交于
      "git ls-remote" and "git archive --remote" are designed to work
      without being in a directory under Git's control.  However, recent
      updates revealed that we randomly look into a directory called
      .git/ without actually doing necessary set-up when working in a
      repository.  Stop doing so.
      
      * jn/remote-helpers-with-git-dir:
        remote helpers: avoid blind fall-back to ".git" when setting GIT_DIR
        remote: avoid reading $GIT_DIR config in non-repo
      411a1794
    • J
      Merge branch 'sb/submodule-config-parse-ignore-fix' into maint · f3d5bbb2
      Junio C Hamano 提交于
      Code to read submodule.<name>.ignore config did not state the
      variable name correctly when giving an error message diagnosing
      misconfiguration.
      
      * sb/submodule-config-parse-ignore-fix:
        submodule-config: correct error reporting for invalid ignore value
      f3d5bbb2
    • J
      Merge branch 'jk/push-deadlock-regression-fix' into maint · f4d3af18
      Junio C Hamano 提交于
      "git push" had a handful of codepaths that could lead to a deadlock
      when unexpected error happened, which has been fixed.
      
      * jk/push-deadlock-regression-fix:
        send-pack: report signal death of pack-objects
        send-pack: read "unpack" status even on pack-objects failure
        send-pack: improve unpack-status error messages
        send-pack: use skip_prefix for parsing unpack status
        send-pack: extract parsing of "unpack" response
        receive-pack: fix deadlock when we cannot create tmpdir
      f4d3af18
    • M
      mailmap: use Michael J Gruber's new address · 296ab786
      Michael J Gruber 提交于
      Map both old addresses to the new, hopefully more permanent one.
      Signed-off-by: NMichael J Gruber <git@drmicha.warpmail.net>
      Signed-off-by: NMichael J Gruber <git@grubix.eu>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      296ab786
  2. 22 3月, 2017 18 次提交
  3. 21 3月, 2017 1 次提交
  4. 17 3月, 2017 10 次提交
    • J
      Preparing for 2.12.1 · 7c9c2f8c
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      7c9c2f8c
    • J
      Merge branch 'js/realpath-pathdup-fix' into maint · 2846ef3e
      Junio C Hamano 提交于
      Git v2.12 was shipped with an embarrassing breakage where various
      operations that verify paths given from the user stopped dying when
      seeing an issue, and instead later triggering segfault.
      ... and then to down to 'maint'.
      
      * js/realpath-pathdup-fix:
        real_pathdup(): fix callsites that wanted it to die on error
        t1501: demonstrate NULL pointer access with invalid GIT_WORK_TREE
      2846ef3e
    • J
      Merge branch 'mm/two-more-xstrfmt' into maint · f989ac27
      Junio C Hamano 提交于
      Code clean-up and a string truncation fix.
      
      * mm/two-more-xstrfmt:
        bisect_next_all: convert xsnprintf to xstrfmt
        stop_progress_msg: convert xsnprintf to xstrfmt
      f989ac27
    • J
      Merge branch 'vn/line-log-memcpy-size-fix' into maint · 3d0449de
      Junio C Hamano 提交于
      The command-line parsing of "git log -L" copied internal data
      structures using incorrect size on ILP32 systems.
      
      * vn/line-log-memcpy-size-fix:
        line-log: use COPY_ARRAY to fix mis-sized memcpy
      3d0449de
    • J
      Merge branch 'ax/line-log-range-merge-fix' into maint · c5bd9e5a
      Junio C Hamano 提交于
      The code to parse "git log -L..." command line was buggy when there
      are many ranges specified with -L; overrun of the allocated buffer
      has been fixed.
      
      * ax/line-log-range-merge-fix:
        line-log.c: prevent crash during union of too many ranges
      c5bd9e5a
    • J
      Merge branch 'jk/add-i-patch-do-prompt' into maint · abe62a40
      Junio C Hamano 提交于
      The patch subcommand of "git add -i" was meant to have paths
      selection prompt just like other subcommand, unlike "git add -p"
      directly jumps to hunk selection.  Recently, this was broken and
      "add -i" lost the paths selection dialog, but it now has been
      fixed.
      
      * jk/add-i-patch-do-prompt:
        add--interactive: fix missing file prompt for patch mode with "-i"
      abe62a40
    • J
      Merge branch 'jt/http-base-url-update-upon-redirect' into maint · 68e12d7d
      Junio C Hamano 提交于
      When a redirected http transport gets an error during the
      redirected request, we ignored the error we got from the server,
      and ended up giving a not-so-useful error message.
      
      * jt/http-base-url-update-upon-redirect:
        http: attempt updating base URL only if no error
      68e12d7d
    • J
      Merge branch 'js/travis-32bit-linux' into maint · 8e87cbc7
      Junio C Hamano 提交于
      Add 32-bit Linux variant to the set of platforms to be tested with
      Travis CI.
      
      * js/travis-32bit-linux:
        Travis: also test on 32-bit Linux
      8e87cbc7
    • J
      Merge branch 'jh/mingw-openssl-sha1' into maint · 890d7650
      Junio C Hamano 提交于
      Windows port wants to use OpenSSL's implementation of SHA-1
      routines, so let them.
      
      * jh/mingw-openssl-sha1:
        mingw: use OpenSSL's SHA-1 routines
      890d7650
    • J
      Merge branch 'jk/http-auth' into maint · d880bfd9
      Junio C Hamano 提交于
      Reduce authentication round-trip over HTTP when the server supports
      just a single authentication method.
      
      * jk/http-auth:
        http: add an "auto" mode for http.emptyauth
        http: restrict auth methods to what the server advertises
      d880bfd9
  5. 16 3月, 2017 1 次提交
  6. 15 3月, 2017 1 次提交
    • M
      git-status: make porcelain more robust · b9e2bc56
      Michael J Gruber 提交于
      git status provides a porcelain mode for porcelain writers with a
      supposedly stable (plumbing) interface.
      7a76c28f ("status: disable translation when --porcelain is used", 2014-03-20)
      made sure that ahead/behind info is not translated (i.e. is stable).
      
      Make sure that the remaining two strings (initial commit, detached head)
      are stable, too.
      
      These changes are for the v1 porcelain interface. While we do have a perfectly
      stable v2 porcelain interface now, some tools (such as
      powerline-gitstatus) are written against v1 and profit from fixing v1
      without any changes on their side.
      Signed-off-by: NMichael J Gruber <git@drmicha.warpmail.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b9e2bc56
  7. 14 3月, 2017 1 次提交
    • J
      http-walker: fix buffer underflow processing remote alternates · d61434ae
      Jeff King 提交于
      If we parse a remote alternates (or http-alternates), we
      expect relative lines like:
      
        ../../foo.git/objects
      
      which we convert into "$URL/../foo.git/" (and then use that
      as a base for fetching more objects).
      
      But if the remote feeds us nonsense like just:
      
        ../
      
      we will try to blindly strip the last 7 characters, assuming
      they contain the string "objects". Since we don't _have_ 7
      characters at all, this results in feeding a small negative
      value to strbuf_add(), which converts it to a size_t,
      resulting in a big positive value. This should consistently
      fail (since we can't generall allocate the max size_t minus
      7 bytes), so there shouldn't be any security implications.
      
      Let's fix this by using strbuf_strip_suffix() to drop the
      characters we want. If they're not present, we'll ignore the
      alternate (in theory we could use it as-is, but the rest of
      the http-walker code unconditionally tacks "objects/" back
      on, so it is it not prepared to handle such a case).
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      d61434ae
  8. 09 3月, 2017 2 次提交