Commit 8120df7
authored
feat(git): support shallow fetch for Git CLI backend (#16156)
### What does this PR try to resolve?
Fixes #14956
### How to test and review this PR?
This is done with some test generalization, so that we can test more
backend interop in the future when libgit2 support `file://` protocol
shallow clones.
In the future we should add container tests for at least gitoxide and
libgit2 backend to ensure they really work with https protocolFile tree
2 files changed
+199
-162
lines changed- src/cargo/sources/git
- tests/testsuite
2 files changed
+199
-162
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1030 | 1030 | | |
1031 | 1031 | | |
1032 | 1032 | | |
| 1033 | + | |
1033 | 1034 | | |
1034 | | - | |
| 1035 | + | |
1035 | 1036 | | |
1036 | 1037 | | |
1037 | 1038 | | |
| |||
1075 | 1076 | | |
1076 | 1077 | | |
1077 | 1078 | | |
| 1079 | + | |
1078 | 1080 | | |
1079 | 1081 | | |
| 1082 | + | |
| 1083 | + | |
1080 | 1084 | | |
1081 | 1085 | | |
1082 | 1086 | | |
1083 | 1087 | | |
1084 | 1088 | | |
1085 | 1089 | | |
1086 | 1090 | | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
1087 | 1095 | | |
1088 | 1096 | | |
1089 | 1097 | | |
| |||
1126 | 1134 | | |
1127 | 1135 | | |
1128 | 1136 | | |
| 1137 | + | |
| 1138 | + | |
1129 | 1139 | | |
1130 | 1140 | | |
1131 | 1141 | | |
| |||
1234 | 1244 | | |
1235 | 1245 | | |
1236 | 1246 | | |
1237 | | - | |
| 1247 | + | |
| 1248 | + | |
1238 | 1249 | | |
1239 | 1250 | | |
1240 | 1251 | | |
| |||
0 commit comments