# IMPORTANT: Git reset after wrong merge

- Thread: https://externals.io/message/96358
- Original archive: https://news-web.php.net/php.internals/96358
- Started by johannes@php.net on 2016-10-13T22:37:03+00:00
- Messages: 6
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #96358 — johannes@php.net — 2016-10-13T22:37:03+00:00

URL: https://externals.io/message/96358#96358

Hi,

as Davey noted in the thread "Master merged into PHP-7.1" there was a
wrong merge in git. This wasn't noticed for a few days. This means we
had a few additional commits in between.

I've reseted PHP-7.1 to the *old* state *before* that merge. Quite a few
commits have been removed and need to be applied again (I hope Davey /
Anatol look after this)

A backup of the bad tree is on
https://github.com/johannes/php-src/tree/broken-5.7-20161014

When pushing please be careful that you are not pushing master again
into PHP-7.1. Please check your local trees carefully, commit
bce17764be6bd5ca43a512db51c030fb8d0437fd should NOT be in 7.1!

johannes

---

## #96362 — Anatol Belski — 2016-10-13T23:11:23+00:00

URL: https://externals.io/message/96358#96362 · In reply to: #96358

> -----Original Message-----
> From: Johannes Schlüter [mailto:johannes@php.net]
> Sent: Friday, October 14, 2016 12:37 AM
> To: PHP internals list <internals@lists.php.net>
> Cc: Davey Shafik <davey@php.net>; Anatol Belski <anatol.php@belski.net>
> Subject: [PHP-DEV] IMPORTANT: Git reset after wrong merge
> 
> Hi,
> 
> as Davey noted in the thread "Master merged into PHP-7.1" there was a wrong
> merge in git. This wasn't noticed for a few days. This means we had a few
> additional commits in between.
> 
> I've reseted PHP-7.1 to the *old* state *before* that merge. Quite a few
> commits have been removed and need to be applied again (I hope Davey /
> Anatol look after this)
> 
> A backup of the bad tree is on
> https://github.com/johannes/php-src/tree/broken-5.7-20161014
> 
> When pushing please be careful that you are not pushing master again into PHP-
> 7.1. Please check your local trees carefully, commit
> bce17764be6bd5ca43a512db51c030fb8d0437fd should NOT be in 7.1!
> 
Yeah, we'll be checking to restore the missing 7.1 commits. Currently merges 7.0 to 7.1, or 7.1 to master, might have issues. I'd ask to please retain from pushing there, until the branch is restored. Hopefully this will happen at some point tomorrow.

Thanks

Anatol

---

## #96363 — Yasuo Ohgaki — 2016-10-14T02:08:21+00:00

URL: https://externals.io/message/96358#96363 · In reply to: #96362

Hi Anatol,


> Yeah, we'll be checking to restore the missing 7.1 commits. Currently merges 7.0 to 7.1, or 7.1 to master, might have issues. I'd ask to please retain from pushing there, until the branch is restored. Hopefully this will happen at some point tomorrow.

I already pushed UPGRADING. This should be harmless.
I'll retain other changes, if any.

Regards,

--
Yasuo Ohgaki
yohgaki@ohgaki.net

---

## #96364 — Anatol Belski — 2016-10-14T02:25:12+00:00

URL: https://externals.io/message/96358#96364 · In reply to: #96362

> -----Original Message-----
> From: Anatol Belski [mailto:anatol.php@belski.net]
> Sent: Friday, October 14, 2016 1:11 AM
> To: 'Johannes Schlüter' <johannes@php.net>; 'PHP internals list'
> <internals@lists.php.net>
> Cc: 'Davey Shafik' <davey@php.net>
> Subject: RE: [PHP-DEV] IMPORTANT: Git reset after wrong merge
> 
> 
> 
> > […]
> Yeah, we'll be checking to restore the missing 7.1 commits. Currently merges 7.0
> to 7.1, or 7.1 to master, might have issues. I'd ask to please retain from pushing
> there, until the branch is restored. Hopefully this will happen at some point
> tomorrow.
> 
I've cherry-picked the missing commits into 7.1 and made initial empty merge 7.0=>7.1=>master. The state of PHP-7.1 should be now comparable to the state before the breach + missing patches. With this, the regular workflow is now restored so pushing/merging should go without issues. 

I would explicitly ask Dmitry, Sara, Hui, Stas, Bob, Nikita and Christoph to check that all the code pushed after Monday 2016-10-10 13:11:45 is where it's expected to be. But also everyone else involved/interested - it would be a big help to double check, also with UPGRADING, NEWS, etc.

Davey, Joe, you will need to check NEWS, UPGRADING and possibly any other non code related files. Also, please keep in mind, that security patches are restored as well. The relevant NEWS are in the 7.0.12 tag.

Please let me know about any issues.

Regards

Anatol

---

## #96365 — Anatol Belski — 2016-10-14T02:31:28+00:00

URL: https://externals.io/message/96358#96365 · In reply to: #96363

Hi Yasuo,

> -----Original Message-----
> From: Yasuo Ohgaki [mailto:yohgaki@ohgaki.net]
> Sent: Friday, October 14, 2016 4:08 AM
> To: Anatol Belski <anatol.php@belski.net>
> Cc: Johannes Schlüter <johannes@php.net>; PHP internals list
> <internals@lists.php.net>; Davey Shafik <davey@php.net>
> Subject: Re: [PHP-DEV] IMPORTANT: Git reset after wrong merge
> 
> Hi Anatol,
> 
> 
> > […]
> 7.0 to 7.1, or 7.1 to master, might have issues. I'd ask to please retain from
> pushing there, until the branch is restored. Hopefully this will happen at some
> point tomorrow.
> 
> I already pushed UPGRADING. This should be harmless.
> I'll retain other changes, if any.
> 
Many thanks for checking. It went faster than I thought, so it should be already possible to push an do the merges. Though it'd not hurt to check everything is in order before. So I'd make sense to wait like half a day or so for everyone to look over the branch before starting with some "heavy" things :)

Thanks

Anatol

---

## #96368 — Christoph M. Becker — 2016-10-14T11:56:10+00:00

URL: https://externals.io/message/96358#96368 · In reply to: #96364

> I would explicitly ask Dmitry, Sara, Hui, Stas, Bob, Nikita and
> Christoph to check that all the code pushed after Monday 2016-10-10
> 13:11:45 is where it's expected to be. But also everyone else
> involved/interested - it would be a big help to double check, also
> with UPGRADING, NEWS, etc.

My commits are in all branches where they are supposed to be.  Also NEWS
and UPGRADING is correct (I had to re-commit a single NEWS entry).

-- 
Christoph M. Becker
