Mailinglist Archive: opensuse-buildservice (256 mails)

< Previous Next >
RE: [opensuse-buildservice] [PATCH] [obs-service-tar_scm] add new parameter 'gitdepth'
  • From: "Markus Lehtonen" <markus.lehtonen@xxxxxxxxxxxxxxx>
  • Date: Thu, 25 Aug 2011 19:34:54 +0300
  • Message-id: <000801cc6344$ec339070$c49ab150$@lehtonen@linux.intel.com>
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 ;)

Thanks,

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.

--
Markus

--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >