git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Debugging a bizarre problem: What can influence 'git fetch'?
@ 2013-03-01 14:39 git-users
  2013-03-02 10:32 ` Tay Ray Chuan
  0 siblings, 1 reply; 3+ messages in thread
From: git-users @ 2013-03-01 14:39 UTC (permalink / raw)
  To: git

Hello.

I'm working on a small project that talks to external git and fossil
repositories. I've run into a bizarre "this cannot happen" problem and
am completely mystified as to what's causing it.

Essentially, the problem is that a particular git command, run as part
of the unit tests for the project, fails reliably when executed from
the project's build system but works correctly when run directly from the
command line or when the same unit tests are executed from the IDE).

The unit test executes the following commands (where e5KbuUvD4Ps is a
random string to ensure that each invocation of the test starts from a
blank canvas):

/usr/bin/git clone --mirror --bare http://git.io7m.com/io7m-jaux.git /tmp/test-e5KbuUvD4Ps/io7m-jaux.git
/usr/bin/git --git-dir=/tmp/test-e5KbuUvD4Ps/io7m-jaux.git fetch -v

The 'git fetch' command raises the following error:

error: Unable to find f981a2bb02c38f20c1e3a5a0fc37c2b4ef5b92ea under http://git.io7m.com/io7m-jaux.git
Cannot obtain needed object f981a2bb02c38f20c1e3a5a0fc37c2b4ef5b92ea
error: Fetch failed.

The f981a2bb02c38f20c1e3a5a0fc37c2b4ef5b92ea is the HEAD commit of the master
branch in the above repos.

I can execute the fetch command from the command line (on the same clones created
by any past invocations of the unit test) and it works correctly. I can run the unit
test from the IDE and it works correctly.

In desperation, I've replaced the git binary with a shell script that logs
the current environment and command line arguments to a file before executing
the real git binary and in all cases, they're completely identical.

I'm out of ideas. What bizarre invisible environment pollution could possibly
be influencing 'git fetch' in this manner? Is there some way to get 'git fetch'
to be more verbose?

M

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Debugging a bizarre problem: What can influence 'git fetch'?
  2013-03-01 14:39 Debugging a bizarre problem: What can influence 'git fetch'? git-users
@ 2013-03-02 10:32 ` Tay Ray Chuan
  2013-03-02 12:59   ` git-users
  0 siblings, 1 reply; 3+ messages in thread
From: Tay Ray Chuan @ 2013-03-02 10:32 UTC (permalink / raw)
  To: git-users; +Cc: Git Mailing List

On Fri, Mar 1, 2013 at 10:39 PM,  <git-users@io7m.com> wrote:
> Is there some way to get 'git fetch'
> to be more verbose?

It seems that the remote is running the 'dumb' http protocol, you
might want to try setting the GIT_CURL_VERBOSE environment variable
for more verbosity.

Have you tried running git-update-server-info on the remote side?
Perhaps a push/fetch led to packs being created so the f981a2b object
isn't available as a loose object but in a pack but the remote still
indicates otherwise.

--
Cheers,
Ray Chuan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Debugging a bizarre problem: What can influence 'git fetch'?
  2013-03-02 10:32 ` Tay Ray Chuan
@ 2013-03-02 12:59   ` git-users
  0 siblings, 0 replies; 3+ messages in thread
From: git-users @ 2013-03-02 12:59 UTC (permalink / raw)
  To: Tay Ray Chuan; +Cc: Git Mailing List

On Sat, 2 Mar 2013 18:32:17 +0800
Tay Ray Chuan <rctay89@gmail.com> wrote:
> 
> It seems that the remote is running the 'dumb' http protocol, you
> might want to try setting the GIT_CURL_VERBOSE environment variable
> for more verbosity.
> 
> Have you tried running git-update-server-info on the remote side?
> Perhaps a push/fetch led to packs being created so the f981a2b object
> isn't available as a loose object but in a pack but the remote still
> indicates otherwise.

Hi.

Yes, git-update-server-info has been used on the remote but to no avail.

I'll try GIT_CURL_VERBOSE. Thanks!

M

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-03-02 13:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-01 14:39 Debugging a bizarre problem: What can influence 'git fetch'? git-users
2013-03-02 10:32 ` Tay Ray Chuan
2013-03-02 12:59   ` git-users

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).