Commit 4f53b2c
committed
fix(git): optimize fetch to selectively include tags and checkout exact refs
- Disabled unconditional addition of "remote.origin.tagOpt" config; only add if not fetching exact ref
- Introduced exactRef flag to detect when fetching a specific origin ref
- When fetching exact ref, checkout uses "FETCH_HEAD" instead of the ref name to avoid detached head advice
- Cleaned up commented-out code and improved fetch argument logic accordingly
Signed-off-by: Filip Pytloun <filip@pytloun.cz>1 parent 7326502 commit 4f53b2c
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
170 | | - | |
171 | 169 | | |
172 | 170 | | |
173 | 171 | | |
174 | 172 | | |
| 173 | + | |
175 | 174 | | |
176 | 175 | | |
177 | 176 | | |
178 | 177 | | |
179 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
180 | 183 | | |
181 | 184 | | |
182 | 185 | | |
| |||
201 | 204 | | |
202 | 205 | | |
203 | 206 | | |
204 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
205 | 213 | | |
206 | 214 | | |
207 | 215 | | |
| |||
0 commit comments