commit - 6a8e5dbbeb3644d733e5e6acb0f5d19280d1c647
commit + bf16ce9567e383f40f76bdd7468c72bf921fc1bf
blob - 4488d67eb3397d5a19bf9cee109f7081050ef57a
blob + 9bffc4e83ea4a9ea3c5f65dc26cdd5fd0d069712
--- lib/error.c
+++ lib/error.c
{ GOT_ERR_SEND_BAD_REF, "reference cannot be sent" },
{ GOT_ERR_SEND_FAILED, "could not send pack file" },
{ GOT_ERR_SEND_EMPTY, "no references to send" },
- { GOT_ERR_SEND_ANCESTRY, "branch on server has a different ancestry; either rebase or merge local branch before sending, or ignore ancestry with send -f (can lead to data loss on server)" },
+ { GOT_ERR_SEND_ANCESTRY, "branch on server has a different ancestry; either fetch changes from server and then rebase or merge local branch before sending, or ignore ancestry with send -f (can lead to data loss on server)" },
{ GOT_ERR_CAPA_DELETE_REFS, "server cannot delete references" },
{ GOT_ERR_SEND_DELETE_REF, "reference cannot be deleted" },
{ GOT_ERR_SEND_TAG_EXISTS, "tag already exists on server" },
blob - 210ee530b5a7d6ed0c4acce42ce8f7a571df8ddf
blob + 2dc1ca89112c06945139d118d2b88d6945dc2a3a
--- regress/cmdline/send.sh
+++ regress/cmdline/send.sh
echo -n "got: refs/heads/master: " > $testroot/stderr.expected
echo -n "branch on server has a different ancestry; " \
>> $testroot/stderr.expected
- echo -n "either rebase or merge local branch before sending, or " \
+ echo -n "either fetch changes from server and then " \
+ >> $testroot/stderr.expected
+ echo -n "rebase or merge local branch before sending, or " \
>> $testroot/stderr.expected
echo "ignore ancestry with send -f (can lead to data loss on server)" \
>> $testroot/stderr.expected