git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 4/6] Improve error message for git-filter-branch
@ 2009-02-19  7:36 John Tapsell
  2009-02-19  8:44 ` Sverre Rabbelier
  2009-02-19 14:19 ` John Tapsell
  0 siblings, 2 replies; 5+ messages in thread
From: John Tapsell @ 2009-02-19  7:36 UTC (permalink / raw)
  To: Git Mailing List

Tell the user that a backup (original) already exists, and how to solve
this problem (with -f option)
---
 git-filter-branch.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/git-filter-branch.sh b/git-filter-branch.sh
index 27b57b8..1ca45e2 100755
--- a/git-filter-branch.sh
+++ b/git-filter-branch.sh
@@ -226,7 +226,8 @@ while read sha1 type name
 do
 	case "$force,$name" in
 	,$orig_namespace*)
-		die "Namespace $orig_namespace not empty"
+		die "Cannot backup - a previous backup already exists in $orig_namespace\n" \
+		    "Force overwriting the backup with -f"
 	;;
 	t,$orig_namespace*)
 		git update-ref -d "$name" $sha1
-- 
1.6.2.rc1.3.g7d31b.dirty

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-02-19 15:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-19  7:36 [PATCH 4/6] Improve error message for git-filter-branch John Tapsell
2009-02-19  8:44 ` Sverre Rabbelier
2009-02-19 14:19 ` John Tapsell
2009-02-19 15:03   ` Johannes Schindelin
2009-02-19 15:13     ` Sverre Rabbelier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).