1. 13 12月, 2013 2 次提交
    • J
      cat-file: handle --batch format with missing type/size · 6554dfa9
      Jeff King 提交于
      Commit 98e2092b taught cat-file to stream blobs with --batch,
      which requires that we look up the object type before
      loading it into memory.  As a result, we now print the
      object header from information in sha1_object_info, and the
      actual contents from the read_sha1_file. We double-check
      that the information we printed in the header matches the
      content we are about to show.
      
      Later, commit 93d2a607 allowed custom header lines for
      --batch, and commit 5b086407 made type lookups optional. As a
      result, specifying a header line without the type or size
      means that we will not look up those items at all.
      
      This causes our double-checking to erroneously die with an
      error; we think the type or size has changed, when in fact
      it was simply left at "0".
      
      For the size, we can fix this by only doing the consistency
      double-check when we have retrieved the size via
      sha1_object_info. In the case that we have not retrieved the
      value, that means we also did not print it, so there is
      nothing for us to check that we are consistent with.
      
      We could do the same for the type. However, besides our
      consistency check, we also care about the type in deciding
      whether to stream or not. So instead of handling the case
      where we do not know the type, this patch instead makes sure
      that we always trigger a type lookup when we are printing,
      so that even a format without the type will stream as we
      would in the normal case.
      Reviewed-by: NJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      6554dfa9
    • J
      cat-file: pass expand_data to print_object_or_die · 370c9268
      Jeff King 提交于
      We currently individually pass the sha1, type, and size
      fields calculated by sha1_object_info. However, if we pass
      the whole struct, the called function can make more
      intelligent decisions about which fields were actually
      filled by sha1_object_info.
      
      This patch takes that first refactoring step, passing the
      whole struct, so further patches can make those decisions
      with less noise in their diffs. There should be no
      functional change to this patch (aside from a minor typo fix
      in the error message).
      
      As a side effect, we can rename the local variables in the
      function to "type" and "size", since the names are no longer
      taken.
      Reviewed-by: NJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      370c9268
  2. 28 11月, 2013 3 次提交
  3. 26 11月, 2013 1 次提交
    • J
      Merge branch 'rh/remote-hg-bzr-updates' (early part) · c302941c
      Junio C Hamano 提交于
      Unbreaks a recent breakage due to use of unquote-c-style.
      
      This may need to be cherry-picked down to 1.8.4.x series.
      
      * 'rh/remote-hg-bzr-updates' (early part):
        remote-hg: don't decode UTF-8 paths into Unicode objects
      c302941c
  4. 21 11月, 2013 4 次提交
  5. 19 11月, 2013 7 次提交
  6. 14 11月, 2013 1 次提交
  7. 13 11月, 2013 2 次提交
  8. 12 11月, 2013 3 次提交
  9. 10 11月, 2013 2 次提交
  10. 09 11月, 2013 7 次提交
    • J
      eadd122b
    • J
      Sync with 1.8.4.3 · 0ecd94d7
      Junio C Hamano 提交于
      0ecd94d7
    • J
      Git 1.8.4.3 · d7d2c879
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      d7d2c879
    • J
      Merge branch 'jn/test-prereq-perl-doc' into maint · cdc0c0f5
      Junio C Hamano 提交于
      The interaction between use of Perl in our test suite and NO_PERL
      has been clarified a bit.
      
      * jn/test-prereq-perl-doc:
        t/README: tests can use perl even with NO_PERL
      cdc0c0f5
    • J
      Merge branch 'ap/remote-hg-unquote-cquote' into maint · 4bc3d3fc
      Junio C Hamano 提交于
      A fast-import stream expresses a pathname with funny characters by
      quoting them in C style; remote-hg remote helper (in contrib/)
      forgot to unquote such a path.
      
      * ap/remote-hg-unquote-cquote:
        remote-hg: unquote C-style paths when exporting
      4bc3d3fc
    • J
      Merge branch 'jc/upload-pack-send-symref' into maint · 9196a2f8
      Junio C Hamano 提交于
      One long-standing flaw in the pack transfer protocol used by "git
      clone" was that there was no way to tell the other end which branch
      "HEAD" points at, and the receiving end needed to guess.  A new
      capability has been defined in the pack protocol to convey this
      information so that cloning from a repository with more than one
      branches pointing at the same commit where the HEAD is at now
      reliably sets the initial branch in the resulting repository.
      
      * jc/upload-pack-send-symref:
        t5570: Update for clone-progress-to-stderr branch
        t5570: Update for symref capability
        clone: test the new HEAD detection logic
        connect: annotate refs with their symref information in get_remote_head()
        connect.c: make parse_feature_value() static
        upload-pack: send non-HEAD symbolic refs
        upload-pack: send symbolic ref information as capability
        upload-pack.c: do not pass confusing cb_data to mark_our_ref()
        t5505: fix "set-head --auto with ambiguous HEAD" test
      9196a2f8
    • J
      Merge branch 'jk/http-auth-redirects' into maint · e5becd04
      Junio C Hamano 提交于
      We did not handle cases where http transport gets redirected during
      the authorization request (e.g. from http:// to https://).
      
      * jk/http-auth-redirects:
        http.c: Spell the null pointer as NULL
        remote-curl: rewrite base url from info/refs redirects
        remote-curl: store url as a strbuf
        remote-curl: make refs_url a strbuf
        http: update base URLs when we see redirects
        http: provide effective url to callers
        http: hoist credential request out of handle_curl_result
        http: refactor options to http_get_*
        http_request: factor out curlinfo_strbuf
        http_get_file: style fixes
      e5becd04
  11. 08 11月, 2013 8 次提交