Skip to content

Commit fe736f9

Browse files
arobenwebkit-commit-queue
authored andcommitted
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 <[email protected]> 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. Canonical link: https://commits.webkit.org/236302@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275666 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent b8649b4 commit fe736f9

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

Tools/ChangeLog

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
2021-04-08 Adam Roben <[email protected]>
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+
118
2021-04-08 Truitt Savell <[email protected]>
219

320
Repalce bot187 with bot178 for CLoop tester.

Tools/Scripts/prepare-ChangeLog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ sub originalFile($$$$)
270270
} else {
271271
$command .= "HEAD";
272272
}
273-
$command .= ":$file";
273+
$command .= ":'$file'";
274274
}
275275

276276
return $command;

0 commit comments

Comments
 (0)