devel@ where you _can_ ask
 help / color / mirror / Atom feed
From: Mikhail Efremov <sem@altlinux.org>
To: devel-newbies@lists.altlinux.org
Subject: Re: [newbies] Как правильно замержить с upstream?
Date: Mon, 18 Apr 2016 21:09:06 +0300
Message-ID: <20160418210906.2d63bf67@sem-notebook> (raw)
In-Reply-To: <a058be9a-034d-f19d-5f8c-33c68691c693@ya.ru>

On Mon, 18 Apr 2016 22:16:24 +0700 Антон Мидюков wrote:
> 18.04.2016 15:41, Антон Мидюков пишет:
> > git merge -s subtree github/master
> >  
> Не работает :-( Коммиты появились, а содержимое каталога осталось 
> прежним. Собрал в тестовом задании в результате вместо 0.7.1 версию 
> 0.6.2 :-(

Значит что-то почему-то смержилось неправильно. Я предпочитаю не
полагаться на автоугадав, а явно указывать каталог для subtree:
git merge -X subtree=<subdir> <object>
Даже так я пару раз сталкивался со странными проблемами при merge в
subtree, возможно это были баги в самом git.
Но такое бывает очень редко, обычно никаких проблем не возникает. Я
давно уже почти во всех своих gear-репозиториях использую subtree (и я
думал, что я единственный, кто так делает) и единственное отличие при
работе с такими репо - это только команда для merge, собственно.
Вы у предыдущего мантейнера спросить не пробовали, как он вел этот
репозиторий? А то вдруг он никакого subtree вообще не делал, например
(можно ведь и руками файлики копировать-переносить).

-- 
WBR, Mikhail Efremov


           reply	other threads:[~2016-04-18 18:09 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <a058be9a-034d-f19d-5f8c-33c68691c693@ya.ru>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160418210906.2d63bf67@sem-notebook \
    --to=sem@altlinux.org \
    --cc=devel-newbies@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

devel@ where you _can_ ask

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-newbies/0 devel-newbies/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-newbies devel-newbies/ http://lore.altlinux.org/devel-newbies \
		devel-newbies@lists.altlinux.org devel-newbies@lists.altlinux.ru devel-newbies@lists.altlinux.com
	public-inbox-index devel-newbies

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-newbies


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git