git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] subtree merge strategy fails if branch.master.rebase=true

From
JHJason Holden <jason.k.holden@gmail.com>
Date
Jul 26, 2009, 21:47 UTC
Message-ID
<1248644865-1998-1-git-send-email-jason.k.holden@gmail.com>

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
Message 1 of 1 in “subtree merge strategy fails if branch.master.rebase=true”
  1. subtree merge strategy fails if branch.master.rebase=trueJason Holden, Jul 26, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.