Hi there,
On a fresh repo, make a few commits and try to rewrite from the first
commit (`r s').
It generates the following backtrace for me on Emacs 23.0.93.
Backtrace:
Debugger entered--Lisp error: (error "Invalid use of `\\' in
replacement text")
replace-match("'\\''" nil nil "'" nil)
replace-regexp-in-string("'" "'\\''" "fatal: ambiguous argument
'master~1^': unknown revision or path not in the working tree.\nUse
'--' to separate paths from revisions\nmaster~1^")
magit-escape-for-shell("fatal: ambiguous argument 'master~1^':
unknown revision or path not in the working tree.\nUse '--' to
separate paths from revisions\nmaster~1^")
mapcar(magit-escape-for-shell ("fatal: ambiguous argument
'master~1^': unknown revision or path not in the working tree.\nUse
'--' to separate paths from revisions\nmaster~1^"))
magit-format-shell-command("rev-list %s.." ("fatal: ambiguous
argument 'master~1^': unknown revision or path not in the working tree.
\nUse '--' to separate paths from revisions\nmaster~1^"))
magit-format-git-command("rev-list %s.." ("fatal: ambiguous argument
'master~1^': unknown revision or path not in the working tree.\nUse
'--' to separate paths from revisions\nmaster~1^"))
magit-git-lines("rev-list %s.." "fatal: ambiguous argument
'master~1^': unknown revision or path not in the working tree.\nUse
'--' to separate paths from revisions\nmaster~1^")
magit-rewrite-start("master~1")
call-interactively(magit-rewrite-start nil nil)
Cheers,
Leo