Re: Git 2 force commits but Git 1 doesn't
- From
brian m. carlson <sandals@crustytoothpaste.net>
- Date
- Jun 22, 2020, 20:43 UTC
- Message-ID
- <20200622204346.GP6531@camp.crustytoothpaste.net>
- In-Reply-To
- <a42d038f-bf14-8f1a-927e-7488796e7710@smartsoftwareinc.com>
On 2020-06-22 at 20:30:06, Michael Ward wrote:
Show 8 quoted lines
> Versions in use are 2.27.2 and 1.8.3.1. This behavior is seen with regular > pushes. > > I'll look into the http-backend functionality. If that will help control > that, we'll definitely want to use that instead. What surprises me, though, > is that even with DAV a 1.8 client appears to work correctly in that it will > warn the user that their push is about to clobber the head, but 2.27 > doesn't.
If you can provide a set of reproduction steps for this, I'd be happy to write a patch to fix it. We should do the right thing for non-force pushes in both cases.
I will say that overall, few people use the DAV-based protocol, since it's significantly less efficient than the smart protocol, so it doesn't surprise me that there may be bugs there.
-- brian m. carlson: Houston, Texas, US OpenPGP: https://keybase.io/bk2204