Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Jun 19, 2012
  1. @gitster

    remove the impression of unexpectedness when access is denied

    Heiko Voigt authored gitster committed
    If a server accessed through ssh is denying access git will currently
    issue the message
    	"fatal: The remote end hung up unexpectedly"
    as the last line. This sounds as if something really ugly just happened.
    Since this is a quite typical situation in which users regularly get
    we do not say that if it happens at the beginning when reading the
    remote heads.
    If its in the very first beginning of reading the remote heads it is
    very likely an authentication error or a missing repository.
    If it happens later during reading the remote heads we still indicate
    that it happened during this initial contact phase.
    Signed-off-by: Heiko Voigt <>
    Signed-off-by: Junio C Hamano <>
Commits on Apr 3, 2011
  1. @bebarino @gitster

    sparse: Fix errors and silence warnings

    bebarino authored gitster committed
     * load_file() returns a void pointer but is using 0 for the return
     * builtin/receive-pack.c forgot to include builtin.h
     * packet_trace_prefix can be marked static
     * ll_merge takes a pointer for its last argument, not an int
     * crc32 expects a pointer as the second argument but Z_NULL is defined
       to be 0 (see 38f4d13 sparse fix: Using plain integer as NULL pointer,
       2006-11-18 for more info)
    Signed-off-by: Stephen Boyd <>
    Signed-off-by: Junio C Hamano <>
Commits on Mar 8, 2011
  1. @peff @gitster

    add packet tracing debug code

    peff authored gitster committed
    This shows a trace of all packets coming in or out of a given
    program. This can help with debugging object negotiation or
    other protocol issues.
    To keep the code changes simple, we operate at the lowest
    level, meaning we don't necessarily understand what's in the
    packets. The one exception is a packet starting with "PACK",
    which causes us to skip that packet and turn off tracing
    (since the gigantic pack data will not be interesting to
    read, at least not in the trace format).
    We show both written and read packets. In the local case,
    this may mean you will see packets twice (written by the
    sender and read by the receiver). However, for cases where
    the other end is remote, this allows you to see the full
    Packet tracing can be enabled with GIT_TRACE_PACKET=<foo>,
    where <foo> takes the same arguments as GIT_TRACE.
    Signed-off-by: Jeff King <>
    Signed-off-by: Junio C Hamano <>
Commits on Oct 31, 2009
  1. @spearce @gitster

    pkt-line: Make packet_read_line easier to debug

    spearce authored gitster committed
    When there is an error parsing the 4 byte length component we now
    display it as part of the die message, this may hint as to what
    data was misunderstood by the application.
    Signed-off-by: Shawn O. Pearce <>
    Signed-off-by: Junio C Hamano <>
  2. @spearce @gitster

    pkt-line: Add strbuf based functions

    spearce authored gitster committed
    These routines help to work with pkt-line values inside of a strbuf,
    permitting simple formatting of buffered network messages.
    Signed-off-by: Shawn O. Pearce <>
    Signed-off-by: Junio C Hamano <>
Commits on Jun 27, 2009
  1. @trast @gitster

    Convert existing die(..., strerror(errno)) to die_errno()

    trast authored gitster committed
    Change calls to die(..., strerror(errno)) to use the new die_errno().
    In the process, also make slight style adjustments: at least state
    _something_ about the function that failed (instead of just printing
    the pathname), and put paths in single quotes.
    Signed-off-by: Thomas Rast <>
    Signed-off-by: Junio C Hamano <>
Commits on May 4, 2008
  1. @heikkiorsila @gitster

    Cleanup xread() loops to use read_in_full()

    heikkiorsila authored gitster committed
    Signed-off-by: Heikki Orsila <>
    Signed-off-by: Junio C Hamano <>
Commits on Jun 7, 2007
  1. @gitster

    War on whitespace

    gitster authored
    This uses "git-apply --whitespace=strip" to fix whitespace errors that have
    crept in to our source files over time.  There are a few files that need
    to have trailing whitespaces (most notably, test vectors).  The results
    still passes the test, and build result in Documentation/ area is unchanged.
    Signed-off-by: Junio C Hamano <>
Commits on May 16, 2007
  1. @jherland

    Ensure return value from xread() is always stored into an ssize_t

    jherland authored Junio C Hamano committed
    This patch fixes all calls to xread() where the return value is not
    stored into an ssize_t. The patch should not have any effect whatsoever,
    other than putting better/more appropriate type names on variables.
    Signed-off-by: Johan Herland <>
    Signed-off-by: Junio C Hamano <>
Commits on Dec 18, 2006
  1. make git a bit less cryptic on fetch errors

    Nicolas Pitre authored Junio C Hamano committed
    The remote server might not want to tell why it doesn't like us for
    security reasons, but let's make the client report such error in a bit
    less confusing way.  The remote failure remains a mystery, but the local
    message might be a bit less so.
    [jc: with a gentle wording updates from Andy Parkins]
    Signed-off-by: Nicolas Pitre <>
    Signed-off-by: Junio C Hamano <>
Commits on Jun 21, 2006
  1. Merge branch 'ff/c99' into next

    Junio C Hamano authored
    * ff/c99:
      Remove all void-pointer arithmetic.
  2. upload-pack/fetch-pack: support side-band communication

    Junio C Hamano authored
    This implements a protocol extension between fetch-pack and
    upload-pack to allow stderr stream from upload-pack (primarily
    used for the progress bar display) to be passed back.
    Signed-off-by: Junio C Hamano <>
Commits on Jun 20, 2006
  1. Remove all void-pointer arithmetic.

    Florian Forster authored Junio C Hamano committed
    ANSI C99 doesn't allow void-pointer arithmetic. This patch fixes this in
    various ways. Usually the strategy that required the least changes was used.
    Signed-off-by: Florian Forster <>
    Signed-off-by: Junio C Hamano <>
Commits on Dec 20, 2005
  1. xread/xwrite: do not worry about EINTR at calling sites.

    Junio C Hamano authored
    We had errno==EINTR check after read(2)/write(2) sprinkled all
    over the places, always doing continue.  Consolidate them into
    xread()/xwrite() wrapper routines.
    Credits for suggestion goes to HPA -- bugs are mine.
    Signed-off-by: Junio C Hamano <>
Commits on Jun 30, 2005
Something went wrong with that request. Please try again.