[Webkit-unassigned] [Bug 240682] New: git-webkit setup fails when run within a worktree

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 19 13:08:29 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=240682

            Bug ID: 240682
           Summary: git-webkit setup fails when run within a worktree
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: gsnedders at apple.com
                CC: jbedard at apple.com

INFO:webkitscmpy:Configuring and copying hook /Volumes/gsnedders/projects/Safari-CSSPropertyEnabled/OpenSource/Tools/Scripts/hooks/prepare-commit-msg for this repository
Downloading jinja2-2.11.3...
Installing jinja2-2.11.3...
Installed jinja2-2.11.3!
Downloading MarkupSafe-1.1.1...
Installing MarkupSafe-1.1.1...
Installed MarkupSafe-1.1.1!
Traceback (most recent call last):
  File "/Volumes/gsnedders/projects/Safari-CSSPropertyEnabled/OpenSource/./Tools/Scripts/git-webkit", line 69, in <module>
    sys.exit(program.main(
  File "/Volumes/gsnedders/projects/Safari-CSSPropertyEnabled/OpenSource/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/__init__.py", line 147, in main
    return parsed.main(
  File "/Volumes/gsnedders/projects/Safari-CSSPropertyEnabled/OpenSource/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/setup.py", line 493, in main
    result = cls.git(args, repository, **kwargs)
  File "/Volumes/gsnedders/projects/Safari-CSSPropertyEnabled/OpenSource/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/setup.py", line 289, in git
    os.makedirs(os.path.dirname(target))
  File "/AppleInternal/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/os.py", line 225, in makedirs
    mkdir(name, mode)
NotADirectoryError: [Errno 20] Not a directory: '/Volumes/gsnedders/projects/Safari-CSSPropertyEnabled/OpenSource/.git/hooks'

When setting up hooks etc. we should be writing into "$( git rev-parse --git-common-dir )/hooks".

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220519/2f23bd44/attachment-0001.htm>


More information about the webkit-unassigned mailing list