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

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

[elpa] scratch/gited 3a19de5: * gited.el (gited-set-branch-upstream): Ou


From: Tino Calancha
Subject: [elpa] scratch/gited 3a19de5: * gited.el (gited-set-branch-upstream): Output buffer must be editable.
Date: Thu, 8 Jun 2017 09:35:48 -0400 (EDT)

branch: scratch/gited
commit 3a19de525a85cbbac603a14e7483fc6f688e7271
Author: Tino Calancha <address@hidden>
Commit: Tino Calancha <address@hidden>

    * 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)



reply via email to

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