The recommended (only?) way to publish a git repository to a remote server
is to run "git init --bare" on the remote, add the remote to the local
..git/config and then do a "git push --all remote".
However, if the local repository does not contain a branch called "master",
then the resulting remote repository is not clonable. When cloning, git
downloads the objects, but then fails with:
cat: <local-repo>/.git/refs/remotes/origin/master: No such file
or directory
Warning: Remote HEAD refers to nonexistent ref, unable to checkout.
This apparently cannot be fixed locally, the only way to clone the repo from
the remote server is to edit the remote *.git/HEAD file to point to a valid
branch.
It would be nice if git could make the remote HEAD point to something
valid after pushing.
Teemu
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (990, 'testing'), (400, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages git-core depends on:
ii cpio 2.9-11 GNU cpio -- a program to manage ar
ii libc6 2.7-6 GNU C Library: Shared libraries
ii libcurl3-gnutls 7.18.0-1 Multi-protocol file transfer libra
ii libdigest-sha1-perl 2.11-2 NIST SHA-1 message digest algorith
ii liberror-perl 0.17-1 Perl module for error/exception ha
ii libexpat1 1.95.8-4 XML parsing C library - runtime li
ii perl-modules 5.8.8-12 Core Perl modules
ii zlib1g 1:1.2.3.3.dfsg-11 compression library - runtime
Versions of packages git-core recommends:
ii curl 7.18.0-1 Get a file from an HTTP, HTTPS or
ii less 418-1 Pager program similar to more
ii openssh-client [ssh-client] 1:4.7p1-4 secure shell client, an rlogin/rsh
ii patch 2.5.9-4 Apply a diff file to an original
ii rsync 3.0.0-2 fast remote file copy program (lik
-- no debconf information
--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org