<?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>268060</bug_id>
          
          <creation_ts>2024-01-24 21:39:45 -0800</creation_ts>
          <short_desc>`check-webkit-style --git-index` fails with error</short_desc>
          <delta_ts>2024-04-06 15:53:52 -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>DUPLICATE</resolution>
          <dup_id>265030</dup_id>
          
          <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="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfan2</cc>
    
    <cc>jbedard</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2007462</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2024-01-24 21:39:45 -0800</bug_when>
    <thetext>OpenSource % ./Tools/Scripts/check-webkit-style --git-index
Traceback (most recent call last):
  File &quot;/Volumes/Data/Development/system/webkit/OpenSource/./Tools/Scripts/check-webkit-style&quot;, line 46, in &lt;module&gt;
    sys.exit(CheckWebKitStyle().main())
  File &quot;/Volumes/Data/Development/system/webkit/OpenSource/Tools/Scripts/webkitpy/style/main.py&quot;, line 157, in main
    patch = host.scm().create_patch(options.git_commit, changed_files=changed_files, git_index=options.git_index, find_branch=True)
  File &quot;/Volumes/Data/Development/system/webkit/OpenSource/Tools/Scripts/webkitpy/common/checkout/scm/git.py&quot;, line 376, in create_patch
    assert command[1] == &apos;diff&apos;
AssertionError</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2009633</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-01-31 21:40:13 -0800</bug_when>
    <thetext>&lt;rdar://problem/122068513&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2026146</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2024-04-04 17:21:49 -0700</bug_when>
    <thetext>I can&apos;t reproduce this. Is there any more information about the state of your checkout when encountering this error? Looking at the code, I suspect this has something to do with generating a patch with a commit message instead of just a diff, so it&apos;s probably related to to being on a PR branch vs main and then having a commit vs just changed files.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2026309</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2024-04-05 09:49:33 -0700</bug_when>
    <thetext>User says this works for them now, closing this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2026551</commentid>
    <comment_count>4</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2024-04-06 15:53:52 -0700</bug_when>
    <thetext>This will&apos;ve been fixed by bug 265030, 273780@main.

*** This bug has been marked as a duplicate of bug 265030 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>