<?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>239296</bug_id>
          
          <creation_ts>2022-04-13 12:27:20 -0700</creation_ts>
          <short_desc>[git-webkit] Found branch name instead of hash</short_desc>
          <delta_ts>2022-04-13 16:43:42 -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>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=239082</see_also>
          <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="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Jonathan Bedard">jbedard</assigned_to>
          <cc>jbedard</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1861218</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2022-04-13 12:27:20 -0700</bug_when>
    <thetext>I tested &apos;git-webkit pr&apos; for the first time today, and noticed it got most of the way before crashing with a ValueError:


$ git-webkit pr
&apos;main&apos; is not a pull request branch, enter name of new branch (or bug URL): https://bugs.webkit.org/show_bug.cgi?id=239290
Switched to a new branch &apos;eng/Misc-compiler-warnings-April-2022-edition&apos;
Created the local development branch &apos;eng/Misc-compiler-warnings-April-2022-edition&apos;
branch &apos;main&apos; set up to track &apos;origin/main&apos;.
  Running status to find changed, added, or removed files.
  Reviewing diff to determine which lines changed.
  Extracting affected function names from source files.
  Change author: Michael Catanzaro &lt;mcatanzaro@redhat.com&gt;.
[eng/Misc-compiler-warnings-April-2022-edition f42be8cb8662] Misc compiler warnings, April 2022 edition https://bugs.webkit.org/show_bug.cgi?id=239290
 Date: Wed Apr 13 14:10:41 2022 -0500
 14 files changed, 70 insertions(+), 4 deletions(-)
remote: Enumerating objects: 883, done.
remote: Counting objects: 100% (883/883), done.
remote: Compressing objects: 100% (353/353), done.
remote: Total 883 (delta 606), reused 797 (delta 527), pack-reused 0
Receiving objects: 100% (883/883), 2.63 MiB | 8.17 MiB/s, done.
Resolving deltas: 100% (606/606), completed with 300 local objects.
From github.com:WebKit/WebKit
   d900a59b35b4..3edd7d730f8d  main       -&gt; main
   d900a59b35b4..3edd7d730f8d  main       -&gt; origin/main
From github.com:WebKit/WebKit
 * branch                      main       -&gt; FETCH_HEAD
Running &apos;git rebase --continue&apos;...
Successfully rebased and updated refs/heads/eng/Misc-compiler-warnings-April-2022-edition.
Running &apos;git rebase --continue&apos;...
fatal: No rebase in progress?
Running &apos;git rebase --continue&apos;...
fatal: No rebase in progress?
Successfully rebased and updated .
Rewrite 8734aa0fbbe6b93d301c2867aa7a6c19daf1bef3 (1/1) (0 seconds passed, remaining 0 predicted)    
WARNING: Ref &apos;refs/remotes/origin/main&apos; is unchanged
Ref &apos;refs/heads/eng/Misc-compiler-warnings-April-2022-edition&apos; was rewritten
Enumerating objects: 84, done.
Counting objects: 100% (84/84), done.
Delta compression using up to 32 threads
Compressing objects: 100% (33/33), done.
Writing objects: 100% (46/46), 6.70 KiB | 6.70 MiB/s, done.
Total 46 (delta 44), reused 14 (delta 13), pack-reused 0
remote: Resolving deltas: 100% (44/44), completed with 38 local objects.
remote: 
remote: Create a pull request for &apos;eng/Misc-compiler-warnings-April-2022-edition&apos; on GitHub by visiting:
remote:      https://github.com/mcatanzaro/WebKit/pull/new/eng/Misc-compiler-warnings-April-2022-edition
remote: 
To github.com:mcatanzaro/WebKit.git
 * [new branch]                eng/Misc-compiler-warnings-April-2022-edition -&gt; eng/Misc-compiler-warnings-April-2022-edition
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
To github.com:mcatanzaro/WebKit.git
   b4b03c423633..3edd7d730f8d  main -&gt; main
Traceback (most recent call last):
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/git-webkit&quot;, line 69, in &lt;module&gt;
    sys.exit(program.main(
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/__init__.py&quot;, line 140, in main
    return parsed.main(
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/pull_request.py&quot;, line 237, in main
    commits = list(repository.commits(begin=dict(hash=branch_point.hash), end=dict(branch=repository.branch)))
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/local/git.py&quot;, line 776, in commits
    commit = Commit(
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/commit.py&quot;, line 181, in __init__
    self.hash = self._parse_hash(hash, do_assert=True)
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/commit.py&quot;, line 75, in _parse_hash
    raise ValueError(&quot;Provided string &apos;{}&apos; is not a git hash&quot;.format(hash))
ValueError: Provided string &apos;fork/eng/Misc-compiler-warnings-April-2022-edition)&apos; is not a git hash</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1861300</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-04-13 15:55:20 -0700</bug_when>
    <thetext>&lt;rdar://problem/91720224&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1861303</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2022-04-13 15:59:11 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/285</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1861323</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-04-13 16:43:40 -0700</bug_when>
    <thetext>Committed r292844 (249617@main): &lt;https://commits.webkit.org/249617@main&gt;

Reviewed commits have been landed. Closing PR #285 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>