Commit a94457d
Fallback to full sync when depth enabled fetch of a sha1 fails
In sha1 mode, when depth is enabled, syncing the revision from
upstream may not work because some servers only allow fetching
named refs. Fetching a specific sha1 may result in an error like
'server does not allow request for unadvertised object'. In this
case, attempt a full sync with depth disabled.
Bug: 410825502
Change-Id: If51bcf18b877cd9491706f5bc3d6fd13c0c3d4f3
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/468282
Commit-Queue: Kaushik Lingarkar <[email protected]>
Tested-by: Kaushik Lingarkar <[email protected]>
Reviewed-by: Gavin Mak <[email protected]>
Reviewed-by: Mike Frysinger <[email protected]>1 parent 97dc5c1 commit a94457d
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2755 | 2755 | | |
2756 | 2756 | | |
2757 | 2757 | | |
| 2758 | + | |
| 2759 | + | |
| 2760 | + | |
| 2761 | + | |
| 2762 | + | |
| 2763 | + | |
| 2764 | + | |
| 2765 | + | |
2758 | 2766 | | |
2759 | 2767 | | |
2760 | 2768 | | |
| |||
0 commit comments