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

Re: [PATCH] Added --mirror-all to git-fetch.

From
Petr Baudis <pasky@suse.cz>
Date
Sep 19, 2006, 23:41 UTC
Message-ID
<20060919234108.GH8259@pasky.or.cz>
In-Reply-To
<20060919232851.GA12195@spearce.org>

Dear diary, on Wed, Sep 20, 2006 at 01:28:51AM CEST, I got a letter where Shawn Pearce <spearce@spearce.org> said that...

> Currently local refs are not deleted even if they do not exist in the
> remote repository.  This may be taken as either a feature or a bug.
  It's a bug for my purposes, but a minor one.
>  pasky was asking about this on #git.  So here it is.
  Thanks!
Show 7 quoted lines
> @@ -216,12 +220,45 @@ case "$update_head_ok" in
>  	;;
>  esac
>  
> -# If --tags (and later --heads or --all) is specified, then we are
> -# not talking about defaults stored in Pull: line of remotes or
> +# If --tags or -mirror_all (and later --heads) is specified, then we
                  ^^ missing dash ;-)
Show 8 quoted lines
> +# are not talking about defaults stored in Pull: line of remotes or
>  # branches file, and just fetch those and refspecs explicitly given.
>  # Otherwise we do what we always did.
>  
> -reflist=$(get_remote_refs_for_fetch "$@")
> +if test "$mirror_all"
> +then
> +	tags=0;  # tags are implied in all 
  This should be tags=;
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Snow falling on Perl. White noise covering line noise.
Hides all the bugs too. -- J. Putnam
Previous: Shawn PearceNext: Junio C Hamano
Message 2 of 14 in “Added --mirror-all to git-fetch.”
  1. Added --mirror-all to git-fetch.Shawn Pearce, Sep 19, 2006
  2. Petr BaudisSep 19, 2006
  3. Junio C HamanoSep 20, 2006
  4. Petr BaudisSep 20, 2006
  5. Shawn PearceSep 20, 2006
  6. Junio C HamanoSep 20, 2006
  7. Shawn PearceSep 20, 2006
  8. Junio C HamanoSep 20, 2006
  9. Shawn PearceSep 20, 2006
  10. Junio C HamanoSep 20, 2006
  11. A Large Angry SCMSep 20, 2006
  12. Petr BaudisSep 20, 2006
  13. Junio C HamanoSep 20, 2006
  14. Shawn PearceSep 20, 2006

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.