Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorMaxim Bublis <satori@yandex-team.ru>2014-08-29 15:53:37 +0400
committerJunio C Hamano <gitster@pobox.com>2014-08-29 21:31:14 +0400
commit2668d692eb1af63097628447f2e0c783b1a45e2e (patch)
tree941bfb5a89e5a0b21c797d560eb804272130434c /t
parent8d30d8a89aa9bf8dfb477cb127af58448bbe9b96 (diff)
fast-import: fix segfault in store_tree()
Branch tree is NULLified by filedelete command if we are trying to delete root tree. Add sanity check and use load_tree() in that case. Signed-off-by: Maxim Bublis <satori@yandex-team.ru> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t9300-fast-import.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t9300-fast-import.sh b/t/t9300-fast-import.sh
index 9cf5e45ae7..d400442a4a 100755
--- a/t/t9300-fast-import.sh
+++ b/t/t9300-fast-import.sh
@@ -3107,7 +3107,7 @@ D ""
INPUT_END
-test_expect_failure 'U: filedelete root succeeds' '
+test_expect_success 'U: filedelete root succeeds' '
git fast-import <input
'
@@ -3117,7 +3117,7 @@ EOF
git diff-tree -M -r U^1 U >actual
-test_expect_failure 'U: validate root delete result' '
+test_expect_success 'U: validate root delete result' '
compare_diff_raw expect actual
'