about summary refs log tree commit diff stats
path: root/.emacs.d/lisp/init-git.el
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2024-09-04 11:59:19 +0100
committerDavid Morgan <djm_uk@protonmail.com>2024-09-04 11:59:19 +0100
commit5d4324c3e233f95ce7b98ac399769cd1f478e15b (patch)
treed49b08a2beb3bbca574073eae27381d6a8e08e80 /.emacs.d/lisp/init-git.el
parentc2217f08242d60ff7447f7bc77ac8d563d8dbad7 (diff)
downloaddotfiles-5d4324c3e233f95ce7b98ac399769cd1f478e15b.tar.gz
Forcing branch is no longer necessary for magit et al
Diffstat (limited to '.emacs.d/lisp/init-git.el')
-rw-r--r--.emacs.d/lisp/init-git.el9
1 files changed, 0 insertions, 9 deletions
diff --git a/.emacs.d/lisp/init-git.el b/.emacs.d/lisp/init-git.el
index 4863b75..1d7183e 100644
--- a/.emacs.d/lisp/init-git.el
+++ b/.emacs.d/lisp/init-git.el
@@ -71,7 +71,6 @@
       (message "not a git repository"))))
 
 (use-package magit
-  :ensure (magit :branch "main")
   :bind
   ("C-c g g" . magit-dispatch) ;; magit-file-dispatch is C-c M-g
   ("C-c g u" . my/magit-set-upstream)
@@ -304,17 +303,9 @@
     (magit-refresh)))
 
 (use-package forge
-  :ensure (forge :branch "main")
   :after magit
   :bind (:map forge-pullreq-list-mode-map ("C-w" . forge-copy-url-at-point-as-kill)))
 
-;; ghub and with-editor are dependencies of magit, but we need to force them to use the main branch
-(use-package ghub
-  :ensure (ghub :branch "main"))
-
-(use-package with-editor
-  :ensure (with-editor :branch "main"))
-
 (use-package git-link
   :config
   (defun git-link-on-branch ()