1. 19 1月, 2010 2 次提交
    • J
      Merge commit 'v1.6.4.4-8-g8de65185' into maint-1.6.4 · 18d97f5f
      Junio C Hamano 提交于
      * commit 'v1.6.4.4-8-g8de65185':
        Fix mis-backport of t7002
      18d97f5f
    • J
      Fix mis-backport of t7002 · 8de65185
      Junio C Hamano 提交于
      The original patch that became cfe370c6 (grep: do not segfault when -f is
      used, 2009-10-16), was made against "maint" or newer branch back then, but
      the fix addressed the issue that was present as far as in 1.6.4 series.
      
      The maintainer backported the patch to the 1.6.4 maintenance branch, but
      failed to notice that the new tests assumed the setup done by the script
      in "maint", which did quite a lot more than the same test script in 1.6.4
      series, and the output didn't match the expected result.
      
      This should fix it.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      8de65185
  2. 28 10月, 2009 2 次提交
  3. 26 10月, 2009 2 次提交
  4. 17 10月, 2009 1 次提交
  5. 13 10月, 2009 3 次提交
  6. 09 10月, 2009 1 次提交
    • B
      ls-files: die instead of fprintf/exit in -i error · ac78b009
      Ben Walton 提交于
      When ls-files was called with -i but no exclude pattern, it was
      calling fprintf(stderr, "...", NULL) and then exiting.  On Solaris,
      passing NULL into fprintf was causing a segfault.  On glibc systems,
      it was simply producing incorrect output (eg: "(null)": ...).  The
      NULL pointer was a result of argv[0] not being preserved by the option
      parser.  Instead of requesting that the option parser preserve
      argv[0], use die() with a constant string.
      
      A trigger for this bug was: `git ls-files -i`
      Signed-off-by: NBen Walton <bwalton@artsci.utoronto.ca>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      ac78b009
  7. 08 10月, 2009 1 次提交
  8. 05 10月, 2009 2 次提交
    • J
      Merge branch 'jc/maint-1.6.4-show-branch-default' into maint · 04ce83e2
      Junio C Hamano 提交于
      * jc/maint-1.6.4-show-branch-default:
        show-branch: fix segfault when showbranch.default exists
      04ce83e2
    • J
      show-branch: fix segfault when showbranch.default exists · 3af1cae4
      Junio C Hamano 提交于
      When running "git show-branch" without any parameter in a repository that
      has showbranch.default defined, we used to rely on the fact that our
      handcrafted option parsing loop never looked at av[0].
      
      The array of default strings had the first real command line argument in
      default_arg[0], but the option parser wanted to look at the array starting
      at av[1], so we assigned the address of -1th element to av to force the
      loop start working from default_arg[0].
      
      This no longer worked since 57343652 (show-branch: migrate to parse-options
      API, 2009-05-21), as parse_options_start() saved the incoming &av[0] in
      its ctx->out and later in parse_options_end() it did memmove to ctx->out
      (with ctx->cpidx == 0), overwriting the memory before default_arg[] array.
      
      I am not sure if this is a bug in parse_options(), or a bug in the caller,
      and tonight I do not have enough concentration to figure out which.  In
      any case, this patch works the issue around.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      3af1cae4
  9. 21 9月, 2009 1 次提交
  10. 17 9月, 2009 5 次提交
  11. 15 9月, 2009 2 次提交
  12. 13 9月, 2009 3 次提交
  13. 11 9月, 2009 1 次提交
  14. 08 9月, 2009 4 次提交
  15. 06 9月, 2009 2 次提交
  16. 04 9月, 2009 3 次提交
  17. 03 9月, 2009 2 次提交
    • G
      git-cvsserver: no longer use deprecated 'git-subcommand' commands · d2feb01a
      Gerrit Pape 提交于
      git-cvsserver still references git commands like 'git-config', which
      is depcrecated.  This commit changes git-cvsserver to use the
      'git subcommand' form.
      
      Sylvain Beucler reported the problem through
       http://bugs.debian.org/536067Signed-off-by: NGerrit Pape <pape@smarden.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      d2feb01a
    • J
      clone: disconnect transport after fetching · 12d49966
      Jeff King 提交于
      The current code just leaves the transport in whatever state
      it was in after performing the fetch.  For a non-empty clone
      over the git protocol, the transport code already
      disconnects at the end of the fetch.
      
      But for an empty clone, we leave the connection hanging, and
      eventually close the socket when clone exits. This causes
      the remote upload-pack to complain "the remote end hung up
      unexpectedly". While this message is harmless to the clone
      itself, it is unnecessarily scary for a user to see and may
      pollute git-daemon logs.
      
      This patch just explicitly calls disconnect after we are
      done with the remote end, which sends a flush packet to
      upload-pack and cleanly disconnects, avoiding the error
      message.
      
      Other transports are unaffected or slightly improved:
      
       - for a non-empty repo over the git protocol, the second
         disconnect is a no-op (since we are no longer connected)
      
       - for "walker" transports (like HTTP or FTP), we actually
         free some used memory (which previously just sat until
         the clone process exits)
      
       - for "rsync", disconnect is always a no-op anyway
      Signed-off-by: NJeff King <peff@peff.net>
      Acked-by: NDaniel Barkalow <barkalow@iabervon.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      12d49966
  18. 30 8月, 2009 1 次提交
  19. 29 8月, 2009 2 次提交