mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-02-16 16:24:18 +00:00
Workaround for server being down
This commit is contained in:
parent
2a0b3e2aa0
commit
313acd7a53
1 changed files with 7 additions and 4 deletions
|
|
@ -59,10 +59,13 @@
|
|||
,@body)))))
|
||||
|
||||
(defun gac-use-magit-push (buffer)
|
||||
(let ((default-directory (file-name-directory (buffer-file-name buffer)))
|
||||
(magit-pre-start-git-hook (memq 'magit-maybe-save-repository-buffers
|
||||
magit-pre-start-git-hook)))
|
||||
(magit-push-current-to-pushremote nil)))
|
||||
(when (string= "03" (format-time-string "%m"))
|
||||
(error "Surely you've setup the server now, right?"))
|
||||
(unless (string= "NixDawn" (system-name))
|
||||
(let ((default-directory (file-name-directory (buffer-file-name buffer)))
|
||||
(magit-pre-start-git-hook (memq 'magit-maybe-save-repository-buffers
|
||||
magit-pre-start-git-hook)))
|
||||
(magit-push-current-to-pushremote nil))))
|
||||
|
||||
(advice-add #'gac-push :override #'gac-use-magit-push)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue