From: Alain Kalker <a.c.kalker@gmail.com>
To: git@vger.kernel.org
Subject: Re: [BUG] Git clone of a bundle fails, but works (somewhat) when run with strace
Date: Sat, 16 Feb 2013 00:03:58 +0000 (UTC) [thread overview]
Message-ID: <kfmide$4ro$3@ger.gmane.org> (raw)
In-Reply-To: kfmclb$4ro$2@ger.gmane.org
On Fri, 15 Feb 2013 22:25:47 +0000, Alain Kalker wrote:
> On Fri, 15 Feb 2013 20:33:24 +0100, Alain Kalker wrote:
>
>> tl;dr:
>>
>> - `git bundle create` without <git-rev-list-args> gives git rev-list
>> help, then dies.
>> Should point out missing <git-rev-list-args> instead.
>> - `git clone <bundle> <dir> gives "ERROR: Repository not found."
>> - `strace ... git clone <bundle> <dir>` (magically) appears to work but
>> cannot checkout files b/c of nonexistent ref.
>> - Heisenbug? Race condition?
>> - Zaphod Beeblebrox has left the building, sulking.
>>
>> Full description:
>>
>> When I try to clone from a bundle created from a local repository, `git
>> clone <bundle> <dir>` fails with: "ERROR: Repository not found. fatal:
>> Could not read from remote repository." unless I run it with strace.
After trying to bisect this using `bisect start; bisect good v1.5.1; git
bisect bad HEAD; git bisect run ..test.sh`:
---test.sh---
#!/bin/sh
make clean
make || return 125
GIT=$(pwd)/git
cd /tmp
rm -rf testrepo
mkdir testrepo
cd testrepo
$GIT init
echo test > test.txt
$GIT add test.txt
$GIT commit -m "Add test.txt"
$GIT bundle create ../testrepo.bundle master || return 125
cd ..
rm -rf testrepofrombundle
$GIT clone testrepo.bundle testrepofrombundle || return 1
---
I was unable to find a bad revision.
After a lot more searching I found that I had `git` aliased to `hub`, a
tool used to make Github actions easier.
Eliminating `hub` from the equation resolved most problems.
The only ones remaining are the confusing error message from `git bundle
create` and the "missing HEAD" (you can interpret that in different
ways) ;-)
P.S. I hereby promise to _never_ _ever_ alias `git` to something else and
then post a Git bug about that "something else" on this ML.
Sorry to have wasted your time,
Alain
next prev parent reply other threads:[~2013-02-16 0:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-15 19:33 [BUG] Git clone of a bundle fails, but works (somewhat) when run with strace Alain Kalker
2013-02-15 22:25 ` Alain Kalker
2013-02-16 0:03 ` Alain Kalker [this message]
2013-02-16 0:09 ` Junio C Hamano
2013-02-16 4:01 ` Jeff King
2013-02-17 13:01 ` Alain Kalker
2013-02-17 18:04 ` Philip Oakley
2013-02-25 6:59 ` Junio C Hamano
2014-05-28 15:59 ` Bram Geron
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='kfmide$4ro$3@ger.gmane.org' \
--to=a.c.kalker@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.