git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paul Smith <paul@mad-scientist.net>
To: git@vger.kernel.org
Subject: Re: Anyone know why git ls-remote output might be corrupted?
Date: Fri, 02 Jun 2023 16:12:35 -0400	[thread overview]
Message-ID: <110083dc83b21cad7a9cb143604cd13dba097110.camel@mad-scientist.net> (raw)
In-Reply-To: <000f01d9958d$347d6220$9d782660$@nexbridge.com>

On Fri, 2023-06-02 at 16:02 -0400, rsbecker@nexbridge.com wrote:
> > > Does your CI/CD system use sparse checkout or depth=1 or some
> > > other partial clone?
> > 
> > Yes, the local copy of the repo is a sparse checkout.
> > 
> > I'm surprised that matters to ls-remote... I would have expected
> > that the "sparseness" of the local repo is irrelevant when listing
> > the state of the remote's heads?
> 
> I'm just wondering whether this might be an impact somehow and adding
> info to help the team diagnose. I have seen other commands have some
> issues in the past with --depth=n

I see.  Well I can try changing my call to avoid the local repo in any
way, and run 'git ls-remote --heads user@server:reponame' from a
temporary directory outside of any repo, rather than using "origin".

I would be surprised if it makes a difference but the behavior is sure
strange enough that I wouldn't be THAT surprised :)

  reply	other threads:[~2023-06-02 20:12 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-02 18:59 Anyone know why git ls-remote output might be corrupted? Paul Smith
2023-06-02 19:12 ` Paul Smith
2023-06-02 19:34   ` rsbecker
2023-06-02 19:53     ` Paul Smith
2023-06-02 20:02       ` rsbecker
2023-06-02 20:12         ` Paul Smith [this message]
2023-06-03  1:17         ` Elijah Newren
2023-06-03  1:12 ` Elijah Newren
2023-06-04  6:00   ` Jeff King
2023-06-04  6:25     ` Jeff King
2023-06-04  6:30       ` Jeff King
2023-06-09 15:33   ` Paul Smith
2023-06-09 18:58     ` Junio C Hamano
2023-06-12 19:59       ` Paul Smith

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=110083dc83b21cad7a9cb143604cd13dba097110.camel@mad-scientist.net \
    --to=paul@mad-scientist.net \
    --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).