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

Changeset 275666 in webkit


Ignore:
Timestamp:
Apr 8, 2021, 11:30:02 AM (6 years ago)
Author:
commit-queue@webkit.org
Message:

prepare-ChangeLog fails to find deleted functions in files with spaces in their path in Git repositories
​https://bugs.webkit.org/show_bug.cgi?id=224303

Patch by Adam Roben <Adam Roben> on 2021-04-08
Reviewed by Sam Weinig.

It would also print a bunch of errors like this on stderr:

fatal: ambiguous argument 'Foo/Bar.cpp': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

  • Scripts/prepare-ChangeLog:

(originalFile): Quote the file path in the git show command we
construct.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r275665 r275666  
     12021-04-08  Adam Roben  <aroben@apple.com>
     2
     3        prepare-ChangeLog fails to find deleted functions in files with spaces in their path in Git repositories
     4        https://bugs.webkit.org/show_bug.cgi?id=224303
     5
     6        Reviewed by Sam Weinig.
     7
     8        It would also print a bunch of errors like this on stderr:
     9
     10            fatal: ambiguous argument 'Foo/Bar.cpp': unknown revision or path not in the working tree.
     11            Use '--' to separate paths from revisions, like this:
     12            'git <command> [<revision>...] -- [<file>...]'
     13
     14        * Scripts/prepare-ChangeLog:
     15        (originalFile): Quote the file path in the `git show` command we
     16        construct.
     17
    1182021-04-08  Truitt Savell  <tsavell@apple.com>
    219
  • trunk/Tools/Scripts/prepare-ChangeLog

    r274481 r275666  
    271271            $command .= "HEAD";
    272272        }
    273         $command .= ":$file";
     273        $command .= ":'$file'";
    274274    }
    275275
Note: See TracChangeset for help on using the changeset viewer.