Mailinglist Archive: opensuse-buildservice (256 mails)

< Previous Next >
Re: [opensuse-buildservice] [PATCH] [obs-service-tar_scm] add new parameter 'gitdepth'
  • From: Adrian Schröter <adrian@xxxxxxx>
  • Date: Thu, 25 Aug 2011 21:17:19 +0200
  • Message-id: <1872492.1eR7CQ38jl@scherben>
Am Donnerstag, 25. August 2011, 19:34:54 schrieb Markus Lehtonen:
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.

hm, just learned that no --depth means --depth=1000 actually ....

Your request got accepted.

thanks
adrian

--
Markus
--
Adrian Schroeter
SUSE Linux Products GmbH
email: adrian@xxxxxxx

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

< Previous Next >