path: root/builtin/fetch-pack.c
diff options
authorJohn Keeping <>2014-01-09 19:47:34 (GMT)
committerJunio C Hamano <>2014-01-09 23:05:26 (GMT)
commitbb3f45838b859c8b17a53a24579a304333868cc8 (patch)
treec8f5a088eb941d1c92a288cde504e52b2504e9d3 /builtin/fetch-pack.c
parentad8261d21221d27638c75f47b39892db6f7972f6 (diff)
rebase: fix fork-point with zero arguments
When no arguments are specified, $switch_to is empty so we end up passing the empty string to "git merge-base --fork-point", which causes an error. git-rebase carries on at this point, but in fact we have failed to apply the fork-point operation. It turns out that the test in t3400 that was meant to test this didn't actually need the fork-point behaviour, so enhance it to make sure that the fork-point is applied correctly. The modified test fails without the change to in this patch. Reported-by: Andreas Krey <> Signed-off-by: John Keeping <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'builtin/fetch-pack.c')
0 files changed, 0 insertions, 0 deletions