]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Improve error message for git-filter-branch
authorJohn Tapsell <johnflux@gmail.com>
Thu, 19 Feb 2009 07:36:35 +0000 (07:36 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 4 Mar 2009 08:56:52 +0000 (00:56 -0800)
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>
git-filter-branch.sh

index 9a09ba138244b1665de78e94ce12fb8fdb878758..20f6f5175070f62ab74eda4839c637afe1004d49 100755 (executable)
@@ -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