From dc49fde45e598812039623d77bf67410aea0e61e Mon Sep 17 00:00:00 2001 From: Phil Jackson Date: Tue, 29 Jun 2010 23:09:05 +0100 Subject: [PATCH] Replace slashes in tracking branch name suggestion. --- magit.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/magit.el b/magit.el index e80253d2..02ab7340 100644 --- a/magit.el +++ b/magit.el @@ -2653,7 +2653,9 @@ With prefix argument, add remaining untracked files as well. tracking brach name suggesting a sensible default." (when (yes-or-no-p (format "Create local tracking branch for %s? " branch)) - (let* ((default-name (concat remote "-" branch)) + (let* ((default-name (concat remote + "-" + (replace-regexp-in-string "[/]" "-" branch))) (chosen-name (read-string (format "Call local branch (%s): " default-name) nil nil