Re: A few git-bp nits
Hi,
On Thu, 28 Aug 2014, Barry Warsaw wrote:
> * There are anomalies when pushing and pulling branches created with g-i-d.
> I get the following errors when I do the initial push:
>
> remote: fatal: Invalid revision range 0000000000000000000000000000000000000000..e14331dcbaf3f0972671111ca1a7a2ee6a7fd734
> remote: fatal: Invalid revision range 0000000000000000000000000000000000000000..a9bb83a461be57ebcd09fa7b5a57597a866dfb52
> remote: fatal: Invalid revision range 0000000000000000000000000000000000000000..48ba72c1bb849788fbe6ae0c20d9e28093039cd9
> remote: fatal: Invalid revision range 0000000000000000000000000000000000000000..1a90ad5e79b2a5298d42a38308019e281bfc95c5
>
> I have no idea what's causing these or what horrible deformity it's leaving
> the state of the repo in.
Those are harmless, it's probably
/usr/local/bin/git-post-receive-tag-pending that is generating those for
the initial push (where there is no old commit).
> It does *something* bad because subsequently cloning the repo afresh,
> I get this error:
>
> warning: remote HEAD refers to nonexistent ref, unable to checkout.
This is unrelated. I modified /git/python-modules/setup-repository to
call “git symbolic-ref HEAD refs/heads/debian/sid” so that the default
branch is debian/sid.
So unless your repositoriy contains a debian/sid branch, you will
get this warning. Still your clone is fine, you can do "git checkout
master" and you will have a proper checkout.
You can can call the above command with another branch as parameter
if you want to reset the default branch to something else.
You can also re-modify the script if everybody prefers to experiment
with "master" as the default branch.
Cheers,
--
Raphaël Hertzog ◈ Debian Developer
Discover the Debian Administrator's Handbook:
→ http://debian-handbook.info/get/
Reply to: