Imported Upstream version 2.9.3
[platform/upstream/git.git] / contrib / subtree / git-subtree.sh
index 7a39b30..b567eae 100755 (executable)
@@ -662,6 +662,7 @@ cmd_split()
                debug "Merging split branch into HEAD..."
                latest_old=$(cache_get latest_old)
                git merge -s ours \
+                       --allow-unrelated-histories \
                        -m "$(rejoin_msg "$dir" $latest_old $latest_new)" \
                        $latest_new >&2 || exit $?
        fi