Re: [PATCH] http-push: push <remote> :<branch> deletes remote branch
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Feb 18, 2008, 17:34 UTC
- Message-ID
- <alpine.LSU.1.00.0802181733400.30505@racer.site>
- In-Reply-To
- <20080218155546.GA8934@localhost>
Hi,
On Mon, 18 Feb 2008, Clemens Buchacher wrote:
Show 10 quoted lines
> diff --git a/http-push.c b/http-push.c > index f9b77d6..e98c52f 100644 > --- a/http-push.c > +++ b/http-push.c > @@ -2138,6 +2138,8 @@ static int delete_remote_branch(char *pattern, int force) > > /* Send delete request */ > fprintf(stderr, "Removing remote branch '%s'\n", remote_ref->name); > + if (dry_run) > + return 0;
Good catch.
Thanks for the patch, I think it good. Now, if we only had automated tests... ;-)
Ciao, Dscho