git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 8/9] transport-helper: add support to delete branches

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Sep 23, 2013, 02:34 UTC
Message-ID
<523fa8aca96e2_57ae47e74413df@nysa.mail>
In-Reply-To
<523F9E79.8070602@bbn.com>
Richard Hansen wrote:
Show 41 quoted lines
> On 2013-08-29 11:23, Felipe Contreras wrote:
> > For remote-helpers that use 'export' to push.
> > 
> > Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
> > ---
> >  t/t5801-remote-helpers.sh |  8 ++++++++
> >  transport-helper.c        | 11 ++++++-----
> >  2 files changed, 14 insertions(+), 5 deletions(-)
> > 
> [...]
> > diff --git a/transport-helper.c b/transport-helper.c
> > index c7135ef..5490796 100644
> > --- a/transport-helper.c
> > +++ b/transport-helper.c
> > @@ -844,18 +844,19 @@ static int push_refs_with_export(struct transport *transport,
> >  		}
> >  		free(private);
> >  
> > -		if (ref->deletion)
> > -			die("remote-helpers do not support ref deletion");
> > -
> 
> The above deleted lines actually appear twice in transport-helper.c due
> to an incorrect merge conflict resolution in
> 99d9ec090677c925c534001f01cbaf303a31cb82.  The other copy of those lines should
> also be deleted:
> 
> diff --git a/transport-helper.c b/transport-helper.c
> index 859131f..bbf4e7c 100644
> --- a/transport-helper.c
> +++ b/transport-helper.c
> @@ -874,9 +874,6 @@ static int push_refs_with_export(struct transport *transport,
>  		char *private;
>  		unsigned char sha1[20];
> 
> -		if (ref->deletion)
> -			die("remote-helpers do not support ref deletion");
> -
>  		private = apply_refspecs(data->refspecs, data->refspec_nr, ref->name);
>  		if (private && !get_sha1(private, sha1)) {
>  			strbuf_addf(&buf, "^%s", private);
Right.
-- 
Felipe Contreras
Previous: Richard HansenNext: Felipe Contreras
Message 15 of 20 in “transport-helper: updates”
  1. 0/9 transport-helper: updatesFelipe Contreras, Aug 29, 2013
  2. 1/9 transport-helper: add 'force' to 'export' helpersFelipe Contreras, Aug 29, 2013
  3. Richard HansenSep 23, 2013
  4. Felipe ContrerasSep 23, 2013
  5. 2/9 transport-helper: check for 'forced update' messageFelipe Contreras, Aug 29, 2013
  6. 3/9 fast-export: improve argument parsingFelipe Contreras, Aug 29, 2013
  7. 4/9 fast-export: add new --refspec optionFelipe Contreras, Aug 29, 2013
  8. Richard HansenSep 23, 2013
  9. Felipe ContrerasSep 23, 2013
  10. 5/9 transport-helper: add support for old:new refspecFelipe Contreras, Aug 29, 2013
  11. 6/9 fast-import: add support to delete refsFelipe Contreras, Aug 29, 2013
  12. 7/9 fast-export: add support to delete refsFelipe Contreras, Aug 29, 2013
  13. 8/9 transport-helper: add support to delete branchesFelipe Contreras, Aug 29, 2013
  14. Richard HansenSep 23, 2013
  15. Felipe ContrerasSep 23, 2013
  16. 9/9 transport-helper: don't update refs in dry-runFelipe Contreras, Aug 29, 2013
  17. Junio C HamanoAug 29, 2013
  18. Felipe ContrerasAug 29, 2013
  19. Richard HansenSep 23, 2013
  20. Felipe ContrerasSep 23, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.