Skip to content

Commit 734cd57

Browse files
johnfluxgitster
authored andcommitted
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: John Tapsell <johnflux@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 50dffd4 commit 734cd57

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

git-filter-branch.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,9 @@ while read sha1 type name
232232
do
233233
case "$force,$name" in
234234
,$orig_namespace*)
235-
die "Namespace $orig_namespace not empty"
235+
die "Cannot create a new backup.
236+
A previous backup already exists in $orig_namespace
237+
Force overwriting the backup with -f"
236238
;;
237239
t,$orig_namespace*)
238240
git update-ref -d "$name" $sha1

0 commit comments

Comments
 (0)