git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-subtree.sh: Use --allow-unrelated-histories when splitting with --rejoin
@ 2016-07-21  0:56 Brett Cundal
  2016-07-21  5:26 ` David Aguilar
  0 siblings, 1 reply; 6+ messages in thread
From: Brett Cundal @ 2016-07-21  0:56 UTC (permalink / raw)
  To: git

---
 contrib/subtree/git-subtree.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/subtree/git-subtree.sh b/contrib/subtree/git-subtree.sh
index 7a39b30..556cd92 100755
--- a/contrib/subtree/git-subtree.sh
+++ b/contrib/subtree/git-subtree.sh
@@ -661,7 +661,7 @@ cmd_split()
 	if [ -n "$rejoin" ]; then
 		debug "Merging split branch into HEAD..."
 		latest_old=$(cache_get latest_old)
-		git merge -s ours \
+		git merge -s ours --allow-unrelated-histories \
 			-m "$(rejoin_msg "$dir" $latest_old $latest_new)" \
 			$latest_new >&2 || exit $?
 	fi

--
https://github.com/git/git/pull/274

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-07-22 17:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-21  0:56 [PATCH] git-subtree.sh: Use --allow-unrelated-histories when splitting with --rejoin Brett Cundal
2016-07-21  5:26 ` David Aguilar
2016-07-21 15:25   ` Johannes Schindelin
2016-07-21 18:09     ` Brett Cundal
2016-07-22  8:11       ` Johannes Schindelin
2016-07-22 17:15         ` Brett Cundal

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).