* [devel] Обновление пакета с refusing to merge unrelated histories
@ 2020-11-04 21:21 Vitaly Lipatov
2020-11-04 22:24 ` Andrey Savchenko
0 siblings, 1 reply; 2+ messages in thread
From: Vitaly Lipatov @ 2020-11-04 21:21 UTC (permalink / raw)
To: ALT Linux Team development discussions
Может кто-нибудь помочь с обновлением пакета hypre —
обычный merge до тэга v2.20.0 заканчивается refusing to merge unrelated
histories,
добавление
--allow-unrelated-histories
приводит к появлению десятков конфликтов между файлами
а добавление -X theirs создаёт успешный merge, но версии файлов в нём
неизвестно откуда.
Обсуждение того, что делать, если в противоположность -s ours нет -s
theirs, длится довольно длинно.
https://stackoverflow.com/questions/173919/is-there-a-theirs-version-of-git-merge-s-ours
Как правильно поступать в таком случае?
--
С уважением,
Виталий Липатов,
ALT Linux Team
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [devel] Обновление пакета с refusing to merge unrelated histories
2020-11-04 21:21 [devel] Обновление пакета с refusing to merge unrelated histories Vitaly Lipatov
@ 2020-11-04 22:24 ` Andrey Savchenko
0 siblings, 0 replies; 2+ messages in thread
From: Andrey Savchenko @ 2020-11-04 22:24 UTC (permalink / raw)
To: ALT Linux Team development discussions
[-- Attachment #1: Type: text/plain, Size: 1271 bytes --]
On Thu, 05 Nov 2020 00:21:41 +0300 Vitaly Lipatov wrote:
> Может кто-нибудь помочь с обновлением пакета hypre —
> обычный merge до тэга v2.20.0 заканчивается refusing to merge unrelated
> histories,
> добавление
> --allow-unrelated-histories
> приводит к появлению десятков конфликтов между файлами
> а добавление -X theirs создаёт успешный merge, но версии файлов в нём
> неизвестно откуда.
>
> Обсуждение того, что делать, если в противоположность -s ours нет -s
> theirs, длится довольно длинно.
> https://stackoverflow.com/questions/173919/is-there-a-theirs-version-of-git-merge-s-ours
>
> Как правильно поступать в таком случае?
Ничего длинного, если нужен просто -s theirs:
$ git merge --no-commit -s ours $theirs_branch
$ git checkout $theirs_branch -- .
$ git add -f . # можно без -f, если нужные файлы в .gitignore не попадают
$ git merge --continue
Best regards,
Andrew Savchenko
[-- Attachment #2: Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-11-04 22:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-04 21:21 [devel] Обновление пакета с refusing to merge unrelated histories Vitaly Lipatov
2020-11-04 22:24 ` Andrey Savchenko
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git