Skip to content

Commit f349013

Browse files
authored
Merge pull request #16 from quicklisp/revert-15-master
Revert "Archive submodules" - causes a lot of failures during a normal update for me.
2 parents 8e2cbdb + a29d695 commit f349013

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

upstream-git.lisp

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -63,32 +63,16 @@
6363
(:method ((source git-at-commit-source))
6464
(format nil "~A" (commit source))))
6565

66-
(defun submodule-git-archive-command (prefix directory)
67-
(flet ((concat (&rest strings)
68-
(apply #'concatenate 'string strings)))
69-
(let* ((tardir (concat (native-directory-string directory) "$path/"))
70-
(tarfile (concat tardir "$name.tar")))
71-
(format nil
72-
"mkdir -p ~S ~
73-
&& git archive HEAD --format=tar --prefix=~S > ~S"
74-
tardir (concat prefix "$path/") tarfile))))
75-
7666
(defmethod make-release-tarball ((source git-source) output-file)
7767
(let ((prefix (release-tarball-prefix source))
7868
(checkout (ensure-source-cache source)))
7969
(in-temporary-directory prefix
8070
(let ((temptar (merge-pathnames "package.tar"))
81-
(tempgz (merge-pathnames "package.tar.gz"))
82-
(tempsub (merge-pathnames "submodules/")))
83-
(ensure-directories-exist tempsub)
71+
(tempgz (merge-pathnames "package.tar.gz")))
8472
(with-posix-cwd checkout
8573
(with-binary-run-output temptar
8674
(run "git" "archive" :format "tar" :prefix prefix
8775
(target-ref source)))
88-
(run "git" "submodule" "foreach" :recursive :quiet
89-
(submodule-git-archive-command prefix tempsub))
90-
(dolist (archive (directory (merge-pathnames "**/*.tar" tempsub)))
91-
(run "tar" "Af" temptar archive))
9276
(run "gzip" "-vn9" temptar)
9377
(copy tempgz output-file))))))
9478

0 commit comments

Comments
 (0)