Commit 1a71141
committed
check: use bare clone
The check container doesn't make any use of an actual checkout, but on
large repositories the time to checkout after fetching can be 90% or
more of the overall time to clone.
Because the --bare option prevents the --branch option from being
setting the refspec in the config we have to do it as a follow-up step.
Instead of relying solely on the config having the refspec set
correctly, we can also explicitly specify the branch when fetching if
one is set.
Signed-off-by: Ryann Graham <r.m.graham@gmail.com>1 parent 0a2b7d7 commit 1a71141
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
| |||
0 commit comments