]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Reword git-am 3-way fallback failure message.
authorJunio C Hamano <junkio@cox.net>
Sat, 24 Feb 2007 09:05:27 +0000 (01:05 -0800)
committerJunio C Hamano <junkio@cox.net>
Sat, 24 Feb 2007 09:06:19 +0000 (01:06 -0800)
When the blobs recorded on the index lines in the patch as pre-image
blobs are not found in the repository, "git-am" punted saying
that the index line does not record anything useful.  This was not
clear enough -- the index line does have something useful but the
problem was that it was not useful in _that_ repository.

Reword the message as Francis Moreau suggests.

Signed-off-by: Junio C Hamano <junkio@cox.net>
git-am.sh

index 6db9cb503a2717d0c45ee40e262747cbeba3ad17..2c73d116b28d0d89d1fbdfc1d454506bff9e3f46 100755 (executable)
--- a/git-am.sh
+++ b/git-am.sh
@@ -66,7 +66,7 @@ fall_back_3way () {
     git-update-index -z --index-info <"$dotest/patch-merge-index-info" &&
     GIT_INDEX_FILE="$dotest/patch-merge-tmp-index" \
     git-write-tree >"$dotest/patch-merge-base+" ||
-    cannot_fallback "Patch does not record usable index information."
+    cannot_fallback "Repository lacks necessary blobs to fall back on 3-way merge."
 
     echo Using index info to reconstruct a base tree...
     if GIT_INDEX_FILE="$dotest/patch-merge-tmp-index" \