Commit 8b11186
mononoke: populate pusher_identities in GitRefLogger
Summary:
The git_ref scuba table was logging empty pusher_identities for every git ref update because `GitBookmarkInfo::log_to_logger` hardcoded `vec![]`. The original comment said this was "Maintaining parity with current Git logger", but having no pusher attribution makes it impossible to investigate who is pushing what to git refs.
Capture the identities from `ctx.metadata().identities()` at `GitBookmarkInfo` construction time, mirroring how `PlainCommitInfo` populates `user_identities` in `commit_logger.rs`.
Reviewed By: YousefSalama
Differential Revision: D104252354
fbshipit-source-id: 626c4f19c8ae78520e4c3b258e84b175ab9e94061 parent 909dce3 commit 8b11186
1 file changed
Lines changed: 9 additions & 1 deletion
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
| |||
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
132 | 139 | | |
133 | 140 | | |
134 | 141 | | |
135 | 142 | | |
136 | 143 | | |
137 | 144 | | |
| 145 | + | |
138 | 146 | | |
139 | 147 | | |
140 | 148 | | |
| |||
157 | 165 | | |
158 | 166 | | |
159 | 167 | | |
160 | | - | |
| 168 | + | |
161 | 169 | | |
162 | 170 | | |
163 | 171 | | |
| |||
0 commit comments