message: Fix switching to the target branch
diff: @@ -4660,11 +4660,11 @@ steps:
  user: root
  commands:
  - git remote add -f upstream https://github.com/tezedge/tezedge.git
  - - apt update && apt install -y valgrind
  + - apt-get update && apt-get install -y valgrind
  - cd tezos/messages
  - cargo build --message-format json --test decode_stream | jq --raw-output '.executable // empty' > source.cmd
  - valgrind --tool=exp-dhat --show-top-n=1 $(cat source.cmd) 2>&1 | tee dhat-source.out | sed '/======== ORDERED BY/Q'
  - - git checkout -B target-branch upstream/$TARGET_BRANCH
  + - git reset --hard upstream/$TARGET_BRANCH
  - cargo clean && cargo build --message-format json --test decode_stream | jq --raw-output '.executable // empty' > target.cmd
  - valgrind --tool=exp-dhat --show-top-n=1 $(cat target.cmd) 2>&1 | tee dhat-target.out | sed '/======== ORDERED BY/Q'
  - 'source_total=$(grep "tot_alloc" < dhat-source.out | sed -E -e "s/.*tot_alloc: *([0-9,]*).*/\\\\1/" -e "s/,//g")'
  