This repository was archived by the owner on Sep 30, 2024. It is now read-only.
Commit d9c9fa8
authored
gitserver: change the way repo name is checked for git command recording. (#55111)
Previously, we checked for a substring, but it breaks in cases where
given repo name is a prefix for another repo names, e.g.: "repo/a" is
included, but "repo/ab" and "repo/a-1" are included too, because of the
check.
This commit changes this behaviour to check for the suffix instead,
which is not perfect, but judging from local testing and how the repos
are named ("orgName/repoName"), this check will filter out most repos
which were previously included by mistake.
Precise implementation requires a lot of effort to propagate repo names
through the recording stack and can be done later.
Test plan:
Local sg run and test that repos with matching prefix are not recorded.1 parent 1f4dddd commit d9c9fa8
2 files changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
641 | 641 | | |
642 | 642 | | |
643 | 643 | | |
644 | | - | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
645 | 649 | | |
646 | 650 | | |
647 | 651 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments