1. 25 3月, 2017 3 次提交
  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 次提交
  9. 08 3月, 2017 3 次提交
    • J
      send-pack: report signal death of pack-objects · d1a13d3f
      Jeff King 提交于
      If our pack-objects sub-process dies of a signal, then it
      likely didn't have a chance to write anything useful to
      stderr. The user may be left scratching their head why the
      push failed. Let's detect this situation and write something
      to stderr.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      d1a13d3f
    • J
      send-pack: read "unpack" status even on pack-objects failure · ba69f92d
      Jeff King 提交于
      If the local pack-objects of a push fails, we'll tell the
      user about it. But one likely cause is that the remote
      index-pack stopped reading for some reason (because it
      didn't like our input, or encountered another error). In
      that case we'd expect the remote to report more details to
      us via the "unpack ..." status line. However, the current
      code just hangs up completely, and the user never sees it.
      
      Instead, let's call receive_unpack_status(), which will
      complain on stderr with whatever reason the remote told us.
      Note that if our pack-objects fails because the connection
      was severed or the remote just crashed entirely, then our
      packet_read_line() call may fail with "the remote end hung
      up unexpectedly". That's OK. It's a more accurate
      description than what we get now (which is just "some refs
      failed to push").
      
      This should be safe from any deadlocks. At the point we make
      this call we'll have closed the writing end of the
      connection to the server (either by handing it off to
      a pack-objects which exited, explicitly in the stateless_rpc
      case, or by doing a half-duplex shutdown for a socket). So
      there should be no chance that the other side is waiting
      for the rest of our pack-objects input.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      ba69f92d
    • J
      send-pack: improve unpack-status error messages · 40d05d04
      Jeff King 提交于
      When the remote tells us that the "unpack" step failed, we
      show an error message. However, unless you are familiar with
      the internals of send-pack and receive-pack, it was not
      clear that this represented an error on the remote side.
      Let's re-word to make that more obvious.
      
      Likewise, when we got an unexpected packet from the other
      end, we complained with a vague message but did not actually
      show the packet.  Let's fix that.
      
      And finally, neither message was marked for translation. The
      message from the remote probably won't be translated, but
      there's no reason we can't do better for the local half.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      40d05d04