Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Jul 19, 2011
  1. @SRabbelier @gitster

    transport-helper: implement marks location as capability

    SRabbelier authored gitster committed
    Now that the gitdir location is exported as an environment variable
    this can be implemented elegantly without requiring any explicit
    flushes nor an ad-hoc exchange of values.
    
    Signed-off-by: Sverre Rabbelier <srabbelier@gmail.com>
    Acked-by: Jeff King <peff@peff.net>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
  2. @SRabbelier @gitster

    transport-helper: change import semantics

    SRabbelier authored gitster committed
    Currently the helper must somehow guess how many import statements to
    read before it starts outputting its fast-export stream. This is
    because the remote helper infrastructure runs fast-import only once,
    so the helper is forced to output one stream for all import commands
    it will receive. The only reason this worked in the past was because
    only one ref was imported at a time.
    
    Change the semantics of the import statement such that it matches
    that of the push statement. That is, the import statement is followed
    by a series of import statements that are terminated by a '\n'.
    
    Signed-off-by: Sverre Rabbelier <srabbelier@gmail.com>
    Acked-by: Jeff King <peff@peff.net>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
  3. @SRabbelier @gitster

    transport-helper: update ref status after push with export

    SRabbelier authored gitster committed
    Also add check_output from python 2.7.
    
    Signed-off-by: Sverre Rabbelier <srabbelier@gmail.com>
    Acked-by: Jeff King <peff@peff.net>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
  4. @SRabbelier @gitster

    transport-helper: use the new done feature where possible

    SRabbelier authored gitster committed
    In other words, use fast-export --use-done-feature to add a 'done'
    command at the end of streams passed to remote helpers' "import"
    commands, and teach the remote helpers implementing "export" to use
    the 'done' command in turn when producing their streams.
    
    The trailing \n in the protocol signals the helper that the
    connection is about to close, allowing it to do whatever cleanup
    neccesary.
    
    Previously, the connection would already be closed by the
    time the trailing \n was to be written. Now that the remote-helper
    protocol uses the new done command in its fast-import streams, this
    is no longer the case and we can safely write the trailing \n.
    
    Signed-off-by: Sverre Rabbelier <srabbelier@gmail.com>
    Acked-by: Jeff King <peff@peff.net>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
  5. @SRabbelier @gitster

    git-remote-testgit: only push for non-local repositories

    SRabbelier authored gitster committed
    Trying to push for local repositories will fail since there is no
    local checkout in .git/info/... to push from as that is only used for
    non-local repositories (local repositories are pushed to directly).
    
    This went unnoticed because the transport helper infrastructure does
    not check the return value of the helper.
    
    Signed-off-by: Sverre Rabbelier <srabbelier@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Apr 1, 2010
  1. @SRabbelier @gitster

    remote-helpers: add testgit helper

    SRabbelier authored gitster committed
    Currently the remote helper infrastructure is only used by the curl
    helper, which does not give a good impression of how remote helpers
    can be used to interact with foreign repositories. Since implementing
    such a helper is non-trivial it would be good to have at least one
    easy-to-follow example demonstrating how to implement a helper that
    interacts with a foreign vcs using fast-import/fast-export.
    
    The testgit helper can be used to interact with remote git
    repositories by prefixing the url with "testgit::".
    
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Something went wrong with that request. Please try again.