On 2011/08/25 at 16:56:16, Adrian Schröter wrote:
Am Donnerstag, 25. August 2011, 15:53:38 schrieb Adrian Schröter:
Am Donnerstag, 25. August 2011, 13:54:20 schrieb Markus Lehtonen:
Add's a new parameter, 'gitdepth' that can be used to define the "history depth" of the git clone/pull. Default behavior stays the same, i.e., tar_scm creates a shallow clone with depth=1.
Hi, I submitted a slightly different version, which allows us to use this parameter also for other SCM's when they support it.
I forgot to say, please test my code. I haven't ;)
I tested it and submitted two small fixes, please see: https://build.opensuse.org/request/show/79803
The first of the two oneliners is a bit hackish way of "fully deepening" a shallow clone that was previously generated. I don't know any other way for doing that. Hackish in a way, that it won't fully deepen it if the commit history was HUGELY deep, that would exceed 999999999.