Skip to content

Commit

Permalink
It's best to start with some kind of commit
Browse files Browse the repository at this point in the history
Elpaca doesn't like recipes with no commits in the source repo

Signed-off-by: Psionik K <[email protected]>
  • Loading branch information
psionic-k committed Jan 19, 2024
1 parent 7b45182 commit b66a4c2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lisp/scratch-pkgs.el
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,14 @@ which ones are scratch by looking at the local repos."
(error "Could not init repository for new package"))
(unless (eq 0 (call-process git-bin nil output nil "add" (buffer-file-name)))
(pop-to-buffer output)
(error "Could not add new package: %s" (buffer-file-name))))
(run-hooks 'scratch-pkgs-after-package-init-hook)))
(error "Could not add new package: %s" (buffer-file-name)))
(pcase scratch-pkgs-mode
((or 'elpaca 'straight)
(unless (eq 0 (call-process git-bin nil output nil
"commit" "-m" "first commit"))
(pop-to-buffer output)
(error "Could not add new package: %s" (buffer-file-name)))))
(run-hooks 'scratch-pkgs-after-package-init-hook))))

;;;###autoload
(defun scratch-pkgs-new (name)
Expand Down

0 comments on commit b66a4c2

Please sign in to comment.