• S
    Don't support shell-quoted refnames in fast-import. · 6c3aac1c
    Shawn O. Pearce 提交于
    The current implementation of shell-style quoted refnames and
    SHA-1 expressions within fast-import contains a bad memory leak.
    We leak the unquoted strings used by the `from` and `merge`
    commands, maybe others.  Its also just muddling up the docs.
    
    Since Git refnames cannot contain LF, and that is our delimiter
    for the end of the refname, and we accept any other character
    as-is, there is no reason for these strings to support quoting,
    except to be nice to frontends.  But frontends shouldn't be
    expecting to use funny refs in Git, and its just as simple to
    never quote them as it is to always pass them through the same
    quoting filter as pathnames.  So frontends should never quote
    refs, or ref expressions.
    Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
    6c3aac1c
fast-import.c 47.2 KB