#2170 rpmbuild: SCM method to clone recursively
Merged 2 years ago by praiskup. Opened 2 years ago by praiskup.
Unknown source recursive-submodule-clone  into  main

@@ -289,7 +289,8 @@

      if scm_type == 'git':

          clone_cmd = ['git', 'clone', url,

                       repo_path, '--depth', '500',

-                      '--no-single-branch']

+                      '--no-single-branch',

+                      "--recursive"]

      else:

          clone_cmd = ['git', 'svn', 'clone', url,

                       repo_path]

@@ -137,7 +137,7 @@

      git_clone_and_checkout("clone_url", committish, "/dir")

      expected = []

      expected += [mock.call(['git', 'clone', 'clone_url', '/dir', '--depth',

-                             '500', '--no-single-branch'])]

+                             '500', '--no-single-branch', '--recursive'])]

      if committish:

          expected += [mock.call(['git', 'checkout', committish], cwd='/dir')]

  

It would be ideal to use --shallow-submodules, but it seems that
rpkg-util doesn't support this, yet:
https://pagure.io/rpkg-util/issue/43

Fixes: #2163

Build succeeded.

rebased onto 620a777

2 years ago

Build succeeded.

Commit 9efadd1 fixes this pull-request

Pull-Request has been merged by praiskup

2 years ago