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
28d74872
Unverified
Commit
28d74872
authored
Jan 07, 2021
by
Stas Bekman
Committed by
GitHub
Jan 07, 2021
Browse files
a more reliable version of branching point discovery (#9449)
parent
3ec40299
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
utils/get_modified_files.py
utils/get_modified_files.py
+1
-1
No files found.
utils/get_modified_files.py
View file @
28d74872
...
...
@@ -24,7 +24,7 @@ import subprocess
import
sys
fork_point_sha
=
subprocess
.
check_output
(
"git merge-base
--fork-point
master"
.
split
()).
decode
(
"utf-8"
)
fork_point_sha
=
subprocess
.
check_output
(
"git merge-base master
HEAD
"
.
split
()).
decode
(
"utf-8"
)
modified_files
=
subprocess
.
check_output
(
f
"git diff --name-only
{
fork_point_sha
}
"
.
split
()).
decode
(
"utf-8"
).
split
()
joined_dirs
=
"|"
.
join
(
sys
.
argv
[
1
:])
...
...
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