Code

i18n: git-pull eval_gettext + die message
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sat, 21 May 2011 18:43:56 +0000 (18:43 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 21 May 2011 18:57:15 +0000 (11:57 -0700)
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-pull.sh

index acb0c37731139778dcfaf85f69434a9c16d7bf8a..06dcd81b020320fd7b0b8458321d9156b0f0d578 100755 (executable)
@@ -222,12 +222,12 @@ then
        echo >&2 "Warning: commit $orig_head."
        git update-index -q --refresh
        git read-tree -u -m "$orig_head" "$curr_head" ||
-               die 'Cannot fast-forward your working tree.
+               die "$(eval_gettext "Cannot fast-forward your working tree.
 After making sure that you saved anything precious from
-$ git diff '$orig_head'
+$ git diff \$orig_head
 output, run
 $ git reset --hard
-to recover.'
+to recover.")"
 
 fi