branch: scratch/gited commit 3a19de525a85cbbac603a14e7483fc6f688e7271 Author: Tino Calancha <tino.calan...@gmail.com> Commit: Tino Calancha <tino.calan...@gmail.com>
* gited.el (gited-set-branch-upstream): Output buffer must be editable. --- packages/gited/gited.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/gited/gited.el b/packages/gited/gited.el index 4b67b88..85540c4 100644 --- a/packages/gited/gited.el +++ b/packages/gited/gited.el @@ -10,9 +10,9 @@ ;; Compatibility: GNU Emacs: 24.4 ;; Version: 0.2.0 ;; Package-Requires: ((emacs "24.4") (cl-lib "0.5")) -;; Last-Updated: Thu Jun 08 19:08:23 JST 2017 +;; Last-Updated: Thu Jun 08 22:31:32 JST 2017 ;; By: calancha -;; Update #: 651 +;; Update #: 652 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; @@ -1894,7 +1894,9 @@ ref is not ancestor of the local ref." (inhibit-read-only t)) (setq gited-output-buffer buf gited-op-string (format "Set branch '%s' upstream" branch)) - (with-current-buffer buf (erase-buffer)) + (with-current-buffer buf + (setq buffer-read-only nil) ; Editable, they can ask username. + (erase-buffer)) (gited-async-operation cmd 'remote-op-p)))) (defun gited-origin (branch &optional no-display)