Task:
To do git bisect
on a repo say https://example.git
, with both the ends of the bisecting range being quite older: say: za3bca
(newer) and fabce1
(older).
Being on limited bandwidth, I don't want to download all the commits up to the latest end of the range as I know for sure I don't need them.
My approach:
So, as given on this git documentation page for git clone
, I want to use both the options: --depth <depth>
and --shallow-since=<date>
together.
- I will specify the date of the older end of the range, e.g.
20220212
(yyyymmdd), - I've counted the number of commits in between the range (to say
100
), and will supply some more than that as the "depth"
git clone https://example.git --shallow-since=20220212 --depth 100
But doing this gives the error: fatal: error processing shallow info: 4