⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 295296 in webkit


Ignore:
Timestamp:
Jun 6, 2022, 2:35:24 PM (4 years ago)
Author:
don.olmstead@sony.com
Message:

Invoke perl in git hooks
​https://bugs.webkit.org/show_bug.cgi?id=241345

Reviewed by Jonathan Bedard.

A windows command prompt doesn't understand shebangs and needs the interpreter to be specified in
order to run successfully.

  • Tools/Scripts/hooks/pre-commit:
  • Tools/Scripts/hooks/prepare-commit-msg:

Canonical link: ​https://commits.webkit.org/251341@main

Location:
trunk/Tools/Scripts/hooks
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/Scripts/hooks/pre-commit

    r295293 r295296  
    3232
    3333if project_files:
    34     code = subprocess.run([os.path.join(SCRIPTS, 'sort-Xcode-project-file')] + project_files).returncode
     34    code = subprocess.run(['perl', os.path.join(SCRIPTS, 'sort-Xcode-project-file')] + project_files).returncode
    3535    if staged:
    3636        code += subprocess.run(['git', 'add'] + project_files).returncode
  • trunk/Tools/Scripts/hooks/prepare-commit-msg

    r295293 r295296  
    4444    try:
    4545        for line in subprocess.check_output(
    46             [os.path.join(SCRIPTS, 'prepare-ChangeLog'), '--no-write', '--only-files', '--delimiters'],
     46            ['perl', os.path.join(SCRIPTS, 'prepare-ChangeLog'), '--no-write', '--only-files', '--delimiters'],
    4747            **(dict(encoding='utf-8') if sys.version_info > (3, 0) else dict())
    4848        ).splitlines():
Note: See TracChangeset for help on using the changeset viewer.