Commit 734cd572 authored by John Tapsell's avatar John Tapsell Committed by Junio C Hamano

Improve error message for git-filter-branch

Tell the user that a backup (original) already exists, and how to solve
this problem (with -f option)
Signed-off-by: default avatarJohn Tapsell <johnflux@gmail.com>
Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
parent 50dffd4e
......@@ -232,7 +232,9 @@ while read sha1 type name
do
case "$force,$name" in
,$orig_namespace*)
die "Namespace $orig_namespace not empty"
die "Cannot create a new backup.
A previous backup already exists in $orig_namespace
Force overwriting the backup with -f"
;;
t,$orig_namespace*)
git update-ref -d "$name" $sha1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment