[tbb-commits] [Git][tpo/applications/tor-browser-build][main] Bug 41168: Check that we are not changing other channel when deploying update_responses

richard (@richard) git at gitlab.torproject.org
Thu Jul 18 17:26:52 UTC 2024



richard pushed to branch main at The Tor Project / Applications / tor-browser-build


Commits:
2303997c by Nicolas Vigier at 2024-07-17T16:45:08+02:00
Bug 41168: Check that we are not changing other channel when deploying update_responses

- - - - -


1 changed file:

- tools/signing/upload-update_responses-to-staticiforme


Changes:

=====================================
tools/signing/upload-update_responses-to-staticiforme
=====================================
@@ -63,6 +63,18 @@ echo "update_responses_commit: $update_responses_commit"
 
 cd "$update_dir"
 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"
 
 static-update-component aus1.torproject.org



View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/2303997c8d9cb336ec79fed2f2685c22894d6f17

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/2303997c8d9cb336ec79fed2f2685c22894d6f17
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20240718/49680490/attachment-0001.htm>


More information about the tbb-commits mailing list