Re: error pushing stash ?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jeff King
Date: Tuesday, October 28, 2008 - 2:23 pm

On Tue, Oct 28, 2008 at 05:17:55PM -0400, Jeff King wrote:


It occurs to me that since I didn't give a good commit message, and
since I replied to a several-weeks-old message, this might be confusing.
But what I am suggesting is that git-push should not bother trying to
send something that it knows git-receive-pack will refuse. So this check
goes into builtin-send-pack.c, and is an exact mirror of the one in
builtin-receive-pack.c:

 $ sed -n 177,181p builtin-receive-pack.c
        /* only refs/... are allowed */
        if (prefixcmp(name, "refs/") || check_ref_format(name + 5)) {
                error("refusing to create funny ref '%s' remotely", name);
                return "funny refname";
        }

-Peff
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
error pushing stash ?, David Bryson, (Mon Oct 6, 5:34 pm)
Re: error pushing stash ?, Shawn O. Pearce, (Mon Oct 6, 5:40 pm)
Re: error pushing stash ?, Jeff King, (Tue Oct 28, 2:17 pm)
Re: error pushing stash ?, Jeff King, (Tue Oct 28, 2:23 pm)