Re: [PATCH] push: disallow --all and refspecs when remote..mirror is set

2019-09-03 Thread Junio C Hamano
Thomas Gummerer writes: > Here's a patch to fix it: > > --- >8 --- > Pushes with --all, or refspecs are disallowed when --mirror is given > to 'git push', or when 'remote..mirror' is set in the config of > the repository, because they can have surprising > effects. 800a4ab399 ("push: check for er

[PATCH] push: disallow --all and refspecs when remote..mirror is set

2019-09-02 Thread Thomas Gummerer
On 08/20, Filippo Valsorda wrote: > When used in a repository cloned with --mirror, git push with refs on > the command line deletes all unmentioned refs. > > This was investigated by @saleemrash1d on Twitter. I'm reporting > their findings here and a reproduction below. > > > seems to be a regre