aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/merge-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'builtin/merge-tree.c')
-rw-r--r--builtin/merge-tree.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/builtin/merge-tree.c b/builtin/merge-tree.c
index b57246da0c..05d0cad554 100644
--- a/builtin/merge-tree.c
+++ b/builtin/merge-tree.c
@@ -476,8 +476,9 @@ static int real_merge(struct merge_tree_options *o,
* Get the merge bases, in reverse order; see comment above
* merge_incore_recursive in merge-ort.h
*/
- merge_bases = repo_get_merge_bases(the_repository, parent1,
- parent2);
+ if (repo_get_merge_bases(the_repository, parent1,
+ parent2, &merge_bases) < 0)
+ exit(128);
if (!merge_bases && !o->allow_unrelated_histories)
die(_("refusing to merge unrelated histories"));
merge_bases = reverse_commit_list(merge_bases);
ain&id=9b19a58f66946c5022fbd1dac6384ca3c86b08ff&follow=1'>worktree: teach `list` to annotate prunable worktreeRafael Silva3-2/+66 2021-01-30worktree: teach `list --porcelain` to annotate locked worktreeRafael Silva3-2/+71 2021-01-30t2402: ensure locked worktree is properly cleaned upRafael Silva1-0/+1 2021-01-30worktree: teach worktree_lock_reason() to gently handle main worktreeRafael Silva2-2/+3 2021-01-30worktree: teach worktree to lazy-load "prunable" reasonRafael Silva2-0/+29 2021-01-30worktree: libify should_prune_worktree()Rafael Silva3-74/+83 2021-01-29p5303: avoid sed GNU-ismJeff King1-4/+8 2021-01-28pretty: lazy-load commit data when expanding user-formatJeff King2-12/+13 2021-01-28rebase -i: do leave commit message intact in fixup! chainsJohannes Schindelin2-1/+20 2021-01-28t0000: consistently use single quotes for outer testsJeff King1-190/+190 2021-01-28t0000: run cleaning test inside sub-testJeff King1-8/+17 2021-01-28t0000: run prereq tests inside sub-testJeff King1-80/+69 2021-01-28t0000: keep clean-up tests togetherJeff King1-11/+11 2021-01-28oid_pos(): access table through const pointersJeff King7-13/+13 2021-01-28hash_pos(): convert to oid_pos()Jeff King7-43/+43 2021-01-28rerere: use strmap to store rerere directoriesJeff King1-39/+23 2021-01-28rerere: tighten rr-cache dirname checkJeff King1-2/+3 2021-01-28rerere: check dirname format while iterating rr_cache directoryJeff King1-3/+11 2021-01-28commit_graft_pos(): take an oid instead of a bare hashJeff King3-6/+6 2021-01-27git-compat-util: always enable variadic macrosJeff King1-2/+5 2021-01-27ci: do not cancel all jobs of a matrix if one failsPhilippe Blain1-0/+4 2021-01-26test-lib: prevent '--stress-jobs=X' from being ignoredSZEDER Gábor1-4/+4 2021-01-26grep/log: remove hidden --debug and --grep-debug optionsÆvar Arnfjörð Bjarmason4-107/+2 2021-01-25The fourth batchJunio C Hamano1-0/+57 2021-01-24grep/pcre2: better support invalid UTF-8 haystacksÆvar Arnfjörð Bjarmason7-2/+81 2021-01-24grep/pcre2 tests: don't rely on invalid UTF-8 data testÆvar Arnfjörð Bjarmason1-6/+1 2021-01-23Remove support for v1 of the PCRE libraryÆvar Arnfjörð Bjarmason7-217/+18 2021-01-23config.mak.uname: remove redundant NO_LIBPCRE1_JIT flagÆvar Arnfjörð Bjarmason1-1/+0