@@ -60,28 +60,26 @@ func CloneRepo(ctx context.Context, logf func(string, ...any), opts CloneRepoOpt
60
60
if ! opts .ThinPack {
61
61
thinPack = false
62
62
logf ("ThinPack options is false, Marking thin-pack as unsupported" )
63
- } else {
64
- if parsed .Hostname () == "dev.azure.com" {
65
- // Azure DevOps requires capabilities multi_ack / multi_ack_detailed,
66
- // which are not fully implemented and by default are included in
67
- // transport.UnsupportedCapabilities.
68
- //
69
- // The initial clone operations require a full download of the repository,
70
- // and therefore those unsupported capabilities are not as crucial, so
71
- // by removing them from that list allows for the first clone to work
72
- // successfully.
73
- //
74
- // Additional fetches will yield issues, therefore work always from a clean
75
- // clone until those capabilities are fully supported.
76
- //
77
- // New commits and pushes against a remote worked without any issues.
78
- // See: https://github.com/go-git/go-git/issues/64
79
- //
80
- // This is knowingly not safe to call in parallel, but it seemed
81
- // like the least-janky place to add a super janky hack.
82
- thinPack = false
83
- logf ("Workaround for Azure DevOps: marking thin-pack as unsupported" )
84
- }
63
+ } else if parsed .Hostname () == "dev.azure.com" {
64
+ // Azure DevOps requires capabilities multi_ack / multi_ack_detailed,
65
+ // which are not fully implemented and by default are included in
66
+ // transport.UnsupportedCapabilities.
67
+ //
68
+ // The initial clone operations require a full download of the repository,
69
+ // and therefore those unsupported capabilities are not as crucial, so
70
+ // by removing them from that list allows for the first clone to work
71
+ // successfully.
72
+ //
73
+ // Additional fetches will yield issues, therefore work always from a clean
74
+ // clone until those capabilities are fully supported.
75
+ //
76
+ // New commits and pushes against a remote worked without any issues.
77
+ // See: https://github.com/go-git/go-git/issues/64
78
+ //
79
+ // This is knowingly not safe to call in parallel, but it seemed
80
+ // like the least-janky place to add a super janky hack.
81
+ thinPack = false
82
+ logf ("Workaround for Azure DevOps: marking thin-pack as unsupported" )
85
83
}
86
84
87
85
if ! thinPack {
0 commit comments