Replace slashes in tracking branch name suggestion.

This commit is contained in:
Phil Jackson 2010-06-29 23:09:05 +01:00
parent fd6f6d5ea7
commit dc49fde45e

View file

@ -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