* [PATCH] subtree merge strategy fails if branch.master.rebase=true
@ 2009-07-26 21:47 Jason Holden
0 siblings, 0 replies; only message in thread
From: Jason Holden @ 2009-07-26 21:47 UTC (permalink / raw)
To: git; +Cc: Jason Holden
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-07-26 21:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-26 21:47 [PATCH] subtree merge strategy fails if branch.master.rebase=true Jason Holden
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).