<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>315286</bug_id>
          
          <creation_ts>2026-05-21 08:08:39 -0700</creation_ts>
          <short_desc>`git webkit pr` fails if a global `format` is defined</short_desc>
          <delta_ts>2026-05-21 18:28:12 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Devin Rousso">hi</reporter>
          <assigned_to name="Devin Rousso">hi</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2212927</commentid>
    <comment_count>0</comment_count>
    <who name="Devin Rousso">hi</who>
    <bug_when>2026-05-21 08:08:39 -0700</bug_when>
    <thetext>my global `.gitconfig` has `format:%C(yellow)%h%Creset %C(cyan)%cd%Creset %C(magenta)%an%Creset %s %C(yellow)%d%Creset`

this messes with the info expected by `webkitscmpy.Git.commit`

```
Traceback (most recent call last):
  File &quot;.../WebKit/Tools/Scripts/git-webkit&quot;, line 65, in &lt;module&gt;
    sys.exit(program.main(
  File &quot;.../WebKit/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/__init__.py&quot;, line 187, in main
    return parsed.main(
  File &quot;.../WebKit/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/pull_request.py&quot;, line 816, in main
    branch_point = cls.pull_request_branch_point(repository, args, **kwargs)
  File &quot;.../WebKit/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/pull_request.py&quot;, line 315, in pull_request_branch_point
    args.issue = cls.issue_from_commits(repository, source_remote, branch_point)
  File &quot;.../WebKit/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/pull_request.py&quot;, line 202, in issue_from_commits
    head = repository.commit(include_log=True, include_identifier=False)
  File &quot;.../WebKit/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/local/git.py&quot;, line 920, in commit
    raise self.Exception(&apos;Invalid commit hash in git log&apos;)
webkitscmpy.scm_base.Exception: Invalid commit hash in git log
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2212928</commentid>
    <comment_count>1</comment_count>
    <who name="Devin Rousso">hi</who>
    <bug_when>2026-05-21 08:10:20 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/65411</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2213125</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-05-21 18:27:35 -0700</bug_when>
    <thetext>Committed 313699@main (6552dc7d1aa7): &lt;https://commits.webkit.org/313699@main&gt;

Reviewed commits have been landed. Closing PR #65411 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2213126</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-05-21 18:28:12 -0700</bug_when>
    <thetext>&lt;rdar://problem/177672603&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>