summaryrefslogtreecommitdiffstats
path: root/scripts/api-review
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2023-06-01 12:00:42 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2023-07-07 15:03:44 +0200
commitf53ea47a74fba5bbca4d0dc7358fc1f53d461fec (patch)
treeac3eb9943fd7298cc694af543fd5aef7203d57b3 /scripts/api-review
parent591ecb3dad7a7a7dd0623a5f478acf71112b93f5 (diff)
Consistently ignore missing file errors when checking out
When resetting a (possibly new) header to the old tag, or deleting it, because resetboring says it has a disclaimer saying it's not public, suppress the same pathspec error as when checking out old headers to the new tag, or deleting them. Change-Id: I5f6a27af569da7e194c45d1ab5daee4d0f2745a6 Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
Diffstat (limited to 'scripts/api-review')
-rwxr-xr-xscripts/api-review/api-review-gen2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/api-review/api-review-gen b/scripts/api-review/api-review-gen
index 61ac088b..3e7097d6 100755
--- a/scripts/api-review/api-review-gen
+++ b/scripts/api-review/api-review-gen
@@ -336,7 +336,7 @@ do
mutter "Reverting the boring changes to $QTMODULE"
run "$THERE/resetboring.py" --disclaim | while read f
do git checkout $QUIET "$PRIOR" -- "$f" || logged rm -f "$f"
- done
+ done 2>&1 | grep -wv "error: pathspec '.*' did not match any"
if git diff --quiet --cached
then