emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/gited b0fe243 19/73: * gited.el (gited-set-branch-upstr


From: Stefan Monnier
Subject: [elpa] externals/gited b0fe243 19/73: * gited.el (gited-set-branch-upstream): Output buffer must be editable.
Date: Sun, 29 Nov 2020 00:00:31 -0500 (EST)

branch: externals/gited
commit b0fe2436514a7f333e7e895ebc044ad32816b9a1
Author: Tino Calancha <tino.calancha@gmail.com>
Commit: Tino Calancha <tino.calancha@gmail.com>

    * gited.el (gited-set-branch-upstream): Output buffer must be editable.
---
 gited.el | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/gited.el b/gited.el
index 4b67b88..85540c4 100644
--- a/gited.el
+++ b/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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]