Fix shell escaping.
* magit.el (magit-escape-for-shell): use literal argument to replace-regexp-in-string function.
This commit is contained in:
parent
9f9370ce62
commit
7700954ee4
1 changed files with 1 additions and 1 deletions
2
magit.el
2
magit.el
|
@ -323,7 +323,7 @@ Many Magit faces inherit from this one by default."
|
||||||
prop val))
|
prop val))
|
||||||
|
|
||||||
(defun magit-escape-for-shell (str)
|
(defun magit-escape-for-shell (str)
|
||||||
(concat "'" (replace-regexp-in-string "'" "'\\''" str) "'"))
|
(concat "'" (replace-regexp-in-string "'" "'\\''" str t t) "'"))
|
||||||
|
|
||||||
(defun magit-format-commit (commit format)
|
(defun magit-format-commit (commit format)
|
||||||
(magit-git-string "log --max-count=1 --pretty=format:%s %s" format commit))
|
(magit-git-string "log --max-count=1 --pretty=format:%s %s" format commit))
|
||||||
|
|
Loading…
Reference in a new issue