Learn more about these different git repos.
Other Git URLs
Please add a --depth argument for clone that would be passed to git clone. Thanks
What would be the use case?
Metadata Update from @cqi: - Issue set to the milestone: NEXT - Issue tagged with: RFE
Not cloning tens/hundreds megabytes when I don't need the history?
Metadata Update from @cqi: - Issue set to the milestone: 1.57 (was: NEXT)
Commit 94b381f fixes this issue
I don't understand why --no-single-branch is implicitly added and there is no opt-out. I've read the commit message, but i don't get it. Could you please explain the problem it solves?
--no-single-branch
Without this additional argument, git will not clone all branches. try "git clone --depth 3 ssh://<user>@pkgs.devel.redhat.com/rpms/rhpkg --origin origin rhpkgy" and after "git branch -a" you will see just a few branches.
That's the point if I don't want history, isn't it?
Do I understand? In case of argument --depth <LIMIT>, you want <LIMIT> number of commits globally through branches?
But git clone is not behaving like that i suppose. When I execute command listed above, and increase <LIMIT> to let's say 100, it still doesn't show either more branches nor more commit messages.
git clone
Depth implicitly selects single-branch. I want that. I just want to clone the tip of master. Yet I assume this only really makes sense if all of --depth, --branch, --no-single-branch and --single-branch are passed to git. See also https://pagure.io/rpkg/issue/432 for a better (universal) solution to this problem.
--depth
--branch
--single-branch
Do I understand? In case of argument --depth <limit>, you want <limit> number of commits globally through branches?
To answer the question: No. I want to limit the commits on master.
@churchyard, would it be OK for you? https://pagure.io/rpkg/pull-request/433
Yes. Thank You.
Commit f2c8237 relates to this ticket
Metadata Update from @onosek: - Issue set to the milestone: 1.58 (was: 1.57)
Log in to comment on this ticket.