1. 21 11月, 2012 8 次提交
  2. 19 11月, 2012 11 次提交
    • J
      Start preparing for 1.8.0.1 · 2808f6ab
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      2808f6ab
    • J
      Merge branch 'sz/maint-curl-multi-timeout' into maint · 8b56a470
      Junio C Hamano 提交于
      Sometimes curl_multi_timeout() function suggested a wrong timeout
      value when there is no file descriptors to wait on and the http
      transport ended up sleeping for minutes in select(2) system call.  A
      workaround has been added for this.
      
      * sz/maint-curl-multi-timeout:
        Fix potential hang in https handshake
      8b56a470
    • J
      Merge branch 'po/maint-refs-replace-docs' into maint · b98769e0
      Junio C Hamano 提交于
      The refs/replace hierarchy was not mentioned in the
      repository-layout docs.
      
      * po/maint-refs-replace-docs:
        Doc repository-layout: Show refs/replace
      b98769e0
    • J
      Merge branch 'ph/pull-rebase-detached' into maint · 611addf8
      Junio C Hamano 提交于
      "git pull --rebase" run while the HEAD is detached tried to find
      the upstream branch of the detached HEAD (which by definition
      does not exist) and emitted unnecessary error messages.
      
      * ph/pull-rebase-detached:
        git-pull: Avoid merge-base on detached head
      611addf8
    • J
      Merge branch 'mm/maint-doc-remote-tracking' into maint · 78ba7e26
      Junio C Hamano 提交于
      Update "remote tracking branch" in the documentation to
      "remote-tracking branch".
      
      * mm/maint-doc-remote-tracking:
        Documentation: remote tracking branch -> remote-tracking branch
      78ba7e26
    • J
      Merge branch 'rs/branch-del-symref' into maint · 3a986691
      Junio C Hamano 提交于
      A symbolic ref refs/heads/SYM was not correctly removed with "git
      branch -d SYM"; the command removed the ref pointed by SYM instead.
      
      * rs/branch-del-symref:
        branch: show targets of deleted symrefs, not sha1s
        branch: skip commit checks when deleting symref branches
        branch: delete symref branch, not its target
        branch: factor out delete_branch_config()
        branch: factor out check_branch_commit()
      3a986691
    • J
      Merge branch 'nd/grep-true-path' into maint · dca5ed5f
      Junio C Hamano 提交于
      "git grep -e pattern <tree>" asked the attribute system to read
      "<tree>:.gitattributes" file in the working tree, which was
      nonsense.
      
      * nd/grep-true-path:
        grep: stop looking at random places for .gitattributes
      dca5ed5f
    • J
      Merge branch 'jc/grep-pcre-loose-ends' (early part) into maint · 4607a8ce
      Junio C Hamano 提交于
      "git log -F -E --grep='<ere>'" failed to use the given <ere>
      pattern as extended regular expression, and instead looked for the
      string literally.
      
      * 'jc/grep-pcre-loose-ends' (early part):
        log --grep: use the same helper to set -E/-F options as "git grep"
        revisions: initialize revs->grep_filter using grep_init()
        grep: move pattern-type bits support to top-level grep.[ch]
        grep: move the configuration parsing logic to grep.[ch]
        builtin/grep.c: make configuration callback more reusable
      4607a8ce
    • J
      Merge branch 'da/mergetools-p4' into maint · 6c95f535
      Junio C Hamano 提交于
      "git mergetool" feeds /dev/null as a common ancestor when dealing
      with an add/add conflict, but p4merge backend cannot handle it. Work
      it around by passing a temporary empty file.
      
      * da/mergetools-p4:
        mergetools/p4merge: Handle "/dev/null"
      6c95f535
    • J
      Merge branch 'jc/test-say-color-avoid-echo-escape' into maint · 3424da11
      Junio C Hamano 提交于
      The "say" function in the test scaffolding incorrectly allowed
      "echo" to interpret "\a" as if it were a C-string asking for a BEL
      output.
      
      * jc/test-say-color-avoid-echo-escape:
        test-lib: Fix say_color () not to interpret \a\b\c in the message
      3424da11
    • J
      Merge branch 'bw/config-lift-variable-name-length-limit' into maint · d6ecf563
      Junio C Hamano 提交于
      The configuration parser had an unnecessary hardcoded limit on
      variable names that was not checked consistently.
      
      * bw/config-lift-variable-name-length-limit:
        Remove the hard coded length limit on variable names in config files
      d6ecf563
  3. 09 11月, 2012 1 次提交
  4. 02 11月, 2012 2 次提交
  5. 28 10月, 2012 2 次提交
    • J
      diff_grep: use textconv buffers for add/deleted files · b1c2f57d
      Jeff King 提交于
      If you use "-G" to grep a diff, we will apply a configured
      textconv filter to the data before generating the diff.
      However, if the diff is an addition or deletion, we do not
      bother running the diff at all, and just look for the token
      in the added (or removed) content. This works because we
      know that the diff must contain every line of content.
      
      However, while we used the textconv-derived buffers in the
      regular diff, we accidentally passed the original unmodified
      buffers to regexec when checking the added or removed
      content. This could lead to an incorrect answer.
      
      Worse, in some cases we might have a textconv buffer but no
      original buffer (e.g., if we pulled the textconv data from
      cache, or if we reused a working tree file when generating
      it). In that case, we could actually feed NULL to regexec
      and segfault.
      Reported-by: NPeter Oberndorfer <kumbayo84@arcor.de>
      Signed-off-by: NJeff King <peff@peff.net>
      b1c2f57d
    • R
      mailmap: avoid out-of-bounds memory access · 3174bc5c
      Romain Francoise 提交于
      AddressSanitizer (http://clang.llvm.org/docs/AddressSanitizer.html)
      complains of a one-byte buffer underflow in parse_name_and_email() while
      running the test suite. And indeed, if one of the lines in the mailmap
      begins with '<', we dereference the address just before the beginning of
      the buffer when looking for whitespace to remove, before checking that
      we aren't going too far.
      
      So reverse the order of the tests to make sure that we don't read
      outside the buffer.
      Signed-off-by: NRomain Francoise <romain@orebokech.com>
      Signed-off-by: NJeff King <peff@peff.net>
      3174bc5c
  6. 25 10月, 2012 3 次提交
  7. 22 10月, 2012 1 次提交
  8. 20 10月, 2012 1 次提交
    • S
      Fix potential hang in https handshake · 7202b81f
      Stefan Zager 提交于
      It has been observed that curl_multi_timeout may return a very long
      timeout value (e.g., 294 seconds and some usec) just before
      curl_multi_fdset returns no file descriptors for reading.  The
      upshot is that select() will hang for a long time -- long enough for
      an https handshake to be dropped.  The observed behavior is that
      the git command will hang at the terminal and never transfer any
      data.
      
      This patch is a workaround for a probable bug in libcurl.  The bug
      only seems to manifest around a very specific set of circumstances:
      
      - curl version (from curl/curlver.h):
      
       #define LIBCURL_VERSION_NUM 0x071307
      
      - git-remote-https running on an ubuntu-lucid VM.
      - Connecting through squid proxy running on another VM.
      
      Interestingly, the problem doesn't manifest if a host connects
      through squid proxy running on localhost; only if the proxy is on
      a separate VM (not sure if the squid host needs to be on a separate
      physical machine).  That would seem to suggest that this issue
      is timing-sensitive.
      
      This patch is more or less in line with a recommendation in the
      curl docs about how to behave when curl_multi_fdset doesn't return
      and file descriptors:
      
      http://curl.haxx.se/libcurl/c/curl_multi_fdset.htmlSigned-off-by: NStefan Zager <szager@google.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      7202b81f
  9. 19 10月, 2012 11 次提交