From: Jason Holden <jason.k.holden@gmail.com>
To: git@vger.kernel.org
Cc: Jason Holden <jason.k.holden@gmail.com>
Subject: [PATCH] subtree merge strategy fails if branch.master.rebase=true
Date: Sun, 26 Jul 2009 17:47:45 -0400 [thread overview]
Message-ID: <1248644865-1998-1-git-send-email-jason.k.holden@gmail.com> (raw)
Update documentation so that users pass --no-rebase to the git-pull
command when using the subtree merge strategy. Without it, if a user
has specified in their config file that branch.master.rebase=true,
the pull will fail with the following error:
>From /disk2/git_projects/git/Bproject
* branch master -> FETCH_HEAD
First, rewinding head to replay your work on top of it...
fatal: Could not parse object 'c54bafddcae4679e8a675713251ace678f962aa0^'
Unknown exit code (128) from command: git-merge-subtree c54bafddcae4679e8a675713251ace678f962aa0^ -- HEAD c54bafddcae4679e8a675713251ace678f962aa0
The hash value referenced above is the first commit made to the main
repository (not the Bproject subtree).
---
Documentation/howto/using-merge-subtree.txt | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Documentation/howto/using-merge-subtree.txt b/Documentation/howto/using-merge-subtree.txt
index 0953a50..3f5972e 100644
--- a/Documentation/howto/using-merge-subtree.txt
+++ b/Documentation/howto/using-merge-subtree.txt
@@ -37,7 +37,7 @@ $ git merge -s ours --no-commit Bproject/master <2>
$ git read-tree --prefix=dir-B/ -u Bproject/master <3>
$ git commit -m "Merge B project as our subdirectory" <4>
-$ git pull -s subtree Bproject master <5>
+$ git pull --no-rebase -s subtree Bproject master <5>
----------------
<1> name the other project "Bproject", and fetch.
<2> prepare for the later step to record the result as a merge.
--
1.6.3.3.497.g2e2f
reply other threads:[~2009-07-26 21:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1248644865-1998-1-git-send-email-jason.k.holden@gmail.com \
--to=jason.k.holden@gmail.com \
--cc=git@vger.kernel.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).