Skip to content
Snippets Groups Projects
Unverified Commit 2303997c authored by boklm's avatar boklm
Browse files

Bug 41168: Check that we are not changing other channel when deploying update_responses

parent 29a472cc
No related branches found
No related tags found
1 merge request!998Bug 41168: Check that we are not changing other channel when deploying update_responses
...@@ -63,6 +63,18 @@ echo "update_responses_commit: $update_responses_commit" ...@@ -63,6 +63,18 @@ echo "update_responses_commit: $update_responses_commit"
cd "$update_dir" cd "$update_dir"
git fetch git fetch
changed_files="\$(git diff --name-only HEAD $update_responses_commit)"
if ! echo "\$changed_files" | grep -qv "$tbb_version_type"
then
echo >&2 "Error: checking out new update_response_commit will changes"
echo >&2 "some files outside of the $tbb_version_type directory:"
echo "\$changed_files" | grep -v "$tbb_version_type" >&2
echo >&2 "--"
echo >&2 "If this is really what you want to do, edit this script to"
echo >&2 "remove the line 'exit 1' and run it again."
echo >&2 "See tor-browser-build#41168 for more details."
exit 1
fi
git checkout "$update_responses_commit" git checkout "$update_responses_commit"
static-update-component aus1.torproject.org static-update-component aus1.torproject.org
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment