Revert how check_format_compatible.sh checkout release branches.

Summary:
In a previous commit, I changed the way to checkout release branches from "git checkout <branch_name>" to "git checkout origin/<branch_name>". However, this doesn't seem to work in our CI environment. Revert it.
Closes https://github.com/facebook/rocksdb/pull/2189

Differential Revision: D4922294

Pulled By: siying

fbshipit-source-id: 482c17f9b05e6ccb190876b050682fe5a458103d
main
Siying Dong 8 years ago committed by Facebook Github Bot
parent 97005dbd5d
commit 963eeba488
  1. 4
      tools/check_format_compatible.sh

@ -76,7 +76,7 @@ https_proxy="fwdproxy:8080" git fetch github_origin
for checkout_obj in "${checkout_objs[@]}" for checkout_obj in "${checkout_objs[@]}"
do do
echo == Generating DB from "$checkout_obj" ... echo == Generating DB from "$checkout_obj" ...
git checkout origin/$checkout_obj git checkout $checkout_obj
make clean make clean
make ldb -j32 make ldb -j32
generate_db $input_data_path $test_dir/$checkout_obj generate_db $input_data_path $test_dir/$checkout_obj
@ -101,7 +101,7 @@ done
for checkout_obj in "${forward_compatible_checkout_objs[@]}" for checkout_obj in "${forward_compatible_checkout_objs[@]}"
do do
echo == Build "$checkout_obj" and try to open DB generated using $checkout_flag... echo == Build "$checkout_obj" and try to open DB generated using $checkout_flag...
git checkout origin/$checkout_obj git checkout $checkout_obj
make clean make clean
make ldb -j32 make ldb -j32
compare_db $test_dir/$checkout_obj $compare_base_db_dir forward_${checkout_obj}_dump.txt 0 compare_db $test_dir/$checkout_obj $compare_base_db_dir forward_${checkout_obj}_dump.txt 0

Loading…
Cancel
Save