allow git ubuntu shallow clone to speed up

Bug #1874474 reported by Christian Ehrhardt 
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
git-ubuntu
Triaged
Wishlist
Unassigned

Bug Description

There is one case left where I still prefer `pull-lp-source` to `git ubuntu clone`.
That is if I just quickly want to check content, because the former is faster.

But turning this around then I often enough need a different version so I need git-ubuntu again.

git itself has shallow clone/checkout which allows to be faster if you "only want to take a look".
I wanted to request that one could make a fast/shallow checkout with git-ubuntu as well.

Example:
 $ git ubuntu clone <pkg> <release>

would shallow-clone just pkg/<release>/ubuntu-devel

That is most of the time enough for what you want, and if it isn't it is just a `git fetch pkg` away then.

Tags: clone workflow
tags: added: clone workflow
Robie Basak (racb)
Changed in usd-importer:
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Robie Basak (racb) wrote :

I'm not sure if you do this already, or if it isn't suitable, but in some cases the Launchpad cgit view is a workaround for "just taking a look". For example: https://git.launchpad.net/ubuntu/+source/hello/tree/

But of course there are cases where having a shallow clone locally would be more convenient.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

After yesterdays discussion it seems this might be more important (and to more people) than we thought. Maybe bump prio a bit on this one?

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

This will be even more useful once we add bug 1673710

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.