Re: [PATCH v3] Porcelain scripts: Rewrite cryptic "needs update" error message
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Feb 12, 2011, 23:14 UTC
- Message-ID
- <AANLkTikuQdJykM7MUV=C5DR7HO5xseBifrY_w2ZWsCiR@mail.gmail.com>
- In-Reply-To
- <1287499168-26569-1-git-send-email-artagnon@gmail.com>
On Tue, Oct 19, 2010 at 16:39, Ramkumar Ramachandra <artagnon@gmail.com> wrote:
Show 5 quoted lines
> - git update-index --ignore-submodules --refresh && > - git diff-files --ignore-submodules --quiet && > - git diff-index --ignore-submodules --cached --quiet HEAD -- || > - die "refusing to pull with rebase: your working tree is not up-to-date" > + require_clean_work_tree "pull with rebase" "Please commit or stash them."
Doing this sort of thing is basically incompatible with doing i18n. I'll work around this when rebasing the ab/i18n series, but in the long term we shouldn't be doing stuff like this.