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