Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
6c62cfb2
Unverified
Commit
6c62cfb2
authored
Feb 04, 2023
by
Darren Tuit
Committed by
GitHub
Feb 03, 2023
Browse files
exclude deleted files in the fixup script (#21436)
exclude deleted files from fixup script
parent
e4bacf66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
utils/get_modified_files.py
utils/get_modified_files.py
+3
-1
No files found.
utils/get_modified_files.py
View file @
6c62cfb2
...
...
@@ -25,7 +25,9 @@ import sys
fork_point_sha
=
subprocess
.
check_output
(
"git merge-base main HEAD"
.
split
()).
decode
(
"utf-8"
)
modified_files
=
subprocess
.
check_output
(
f
"git diff --name-only
{
fork_point_sha
}
"
.
split
()).
decode
(
"utf-8"
).
split
()
modified_files
=
(
subprocess
.
check_output
(
f
"git diff --diff-filter=d --name-only
{
fork_point_sha
}
"
.
split
()).
decode
(
"utf-8"
).
split
()
)
joined_dirs
=
"|"
.
join
(
sys
.
argv
[
1
:])
regex
=
re
.
compile
(
rf
"^(
{
joined_dirs
}
).*?\.py$"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment