git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexander Gladysh <agladysh@gmail.com>
To: git@vger.kernel.org
Subject: false positives from git diff-index when used with --git-dir
Date: Thu, 14 Oct 2010 18:40:51 +0400	[thread overview]
Message-ID: <AANLkTimyeE=OLdC0Zzdnidr_dssFfkMzS+r_39dYUVxz@mail.gmail.com> (raw)

Hi, list!

$ git --version
git version 1.7.3.1

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 10.10
Release:	10.10
Codename:	maverick

I'm *sometimes* (once in about ten times I use it -- repository
changes between invocations of course) getting false positives from
git diff-index when I invoke git from another directory:

git --git-dir=path/to/.git --work-tree=path/to update-index -q --refresh
git --git-dir=path/to/.git --work-tree=path/to diff-index --exit-code
--quiet HEAD

This is *really* annoying and really kills the benifits from my
workflow automation scripts.

Unfortunately I can't find a reproducible use case for this bug.

Is there anything I can do to help catch it?

Thanks,
Alexander.

             reply	other threads:[~2010-10-14 14:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-14 14:40 Alexander Gladysh [this message]
2010-10-14 17:02 ` false positives from git diff-index when used with --git-dir Jeff King
2010-10-14 17:20   ` Alexander Gladysh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTimyeE=OLdC0Zzdnidr_dssFfkMzS+r_39dYUVxz@mail.gmail.com' \
    --to=agladysh@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).