Dear diary, on Wed, Sep 20, 2006 at 01:28:51AM CEST, I got a letter where Shawn Pearce <spearce@xxxxxxxxxxx> 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! > @@ -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 ;-) > +# 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 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html