From 7700954ee4e081c3236e01c5b04e323e519ede08 Mon Sep 17 00:00:00 2001 From: Marcin Bachry Date: Sun, 17 May 2009 16:58:37 +0200 Subject: [PATCH] Fix shell escaping. * magit.el (magit-escape-for-shell): use literal argument to replace-regexp-in-string function. --- magit.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magit.el b/magit.el index b594e717..2b1c1e49 100644 --- a/magit.el +++ b/magit.el @@ -323,7 +323,7 @@ Many Magit faces inherit from this one by default." prop val)) (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) (magit-git-string "log --max-count=1 --pretty=format:%s %s" format commit))