@matheusbsbs / matheus-bagliano / commits / 734cd5726c
Fork 0

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>

John Tapsell committed Feb 19, 2009 at 07:36 UTC 734cd5726cf0f16fcbdc2fc121df23814513c420
1 file changed +3 -1
git-filter-branch.sh
+3 -1
@@ -232,7 +232,9 @@ while read sha1 type name
232 do
233 case "$force,$name" in
234 ,$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"
238 ;;
239 t,$orig_namespace*)
240 git update-ref -d "$name" $sha1