electron/script/lib
Samuel Attard c219f2c990
build: derive patches upstream-head ref from script path (41-x-y) (#50741)
build: derive patches upstream-head ref from script path (#50727)

* build: derive patches upstream-head ref from script path

gclient-new-workdir.py symlinks each repo's .git/refs back to the source
checkout, so the fixed refs/patches/upstream-head was shared across all
worktrees. Parallel `e sync` runs in different worktrees clobbered each
other's upstream-head, breaking `e patches` and check-patch-diff.

Suffix the ref with an md5 of the script directory so each worktree writes
a distinct ref into the shared refs dir. Fall back to the legacy ref name
in guess_base_commit so existing checkouts keep working until next sync.

* fixup: also write legacy upstream-head ref and note it in docs
2026-04-06 16:02:11 -04:00
..
__init__.py Move helper functions into a common module. 2013-06-20 22:51:58 +08:00
azput.js build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
config.py build: correct uploader copy for tar files (#48953) 2025-11-13 20:07:52 -08:00
electron.gitattributes build: fix path to git attributes for for patch export (#24896) 2020-08-10 07:10:15 -07:00
get-version.js build: always use python3 in script/lib/get-version.js (#45400) 2025-02-03 16:13:36 -05:00
git.py build: derive patches upstream-head ref from script path (41-x-y) (#50741) 2026-04-06 16:02:11 -04:00
native_tests.py chore: bump pylint to 2.17 (#41576) 2024-03-21 09:48:23 -04:00
npm.py build: fail a build if some hooks don't succeed (#16369) 2019-01-23 11:31:14 +01:00
patches.py chore: bump pylint to 2.17 (#41576) 2024-03-21 09:48:23 -04:00
util.py build: apply additional compression to dsym on upload (#48930) 2025-11-13 10:43:53 +01:00
utils.js build: lint commits on Chromium roller branches (#49862) 2026-02-19 09:53:51 +01:00