summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2016-06-20 01:45:31 -0400
committerKyle Meyer <kyle@kyleam.com>2016-06-22 22:27:37 -0400
commitb74364d2da86ba28e928a783f7e19ccc9fb8671f (patch)
treedff17494819fb9ec7193c8a0001e06af3d8a3ef5 /lisp
parent0133dc336484057f63b1f429850a40ff3c74e768 (diff)
downloademacs.d-b74364d2da86ba28e928a783f7e19ccc9fb8671f.tar.gz
magit-copy-commit-summary: protect format characters
Diffstat (limited to 'lisp')
-rw-r--r--lisp/km-magit.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/km-magit.el b/lisp/km-magit.el
index 0835ff1..5edfbb4 100644
--- a/lisp/km-magit.el
+++ b/lisp/km-magit.el
@@ -449,6 +449,7 @@ COMMIT."
(magit-read-branch-or-commit "Commit" atpoint)))))
(if (magit-rev-verify (concat commit "^{commit}"))
(kill-new (message
+ "%s"
;; Using `magit-git-string' instead of
;; `magit-rev-format' to pass --date flag.
(magit-git-string "show" "-s" "--date=short"