зеркало из https://github.com/microsoft/git.git
contrib/subtree: small tidy-up to test
There's no need to switch branches to parse another branch's ancestry. Signed-off-by: Charles Bailey <cbailey32@bloomberg.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
d417c244ec
Коммит
edc8f710c7
|
@ -221,9 +221,7 @@ test_expect_success 'check hash of split' '
|
|||
spl1=$(git subtree split --prefix subdir) &&
|
||||
git subtree split --prefix subdir --branch splitbr1test &&
|
||||
check_equal ''"$(git rev-parse splitbr1test)"'' "$spl1" &&
|
||||
git checkout splitbr1test &&
|
||||
new_hash=$(git rev-parse HEAD~2) &&
|
||||
git checkout mainline &&
|
||||
new_hash=$(git rev-parse splitbr1test~2) &&
|
||||
check_equal ''"$new_hash"'' "$subdir_hash"
|
||||
'
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче