-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Package: git
Version: 1:1.7.2.3-2
Severity: normal
Strange problem, if I create a submodule of an other repository giving
the currently used HEAD branch I get the error: »fatal: git checkout:
branch myimbabranch already exists« while when giving other branch
work well.
To explain, here is a example
{{{shell
mkdir a b
commonroot=$PWD
cd a
git init
touch bla
git add bla
git commit -m bla
git checkout -b bla
git checkout -b foo
cd ../b
git init
# The next command work well
git submodule add -b bla $commonroot/a bla
# One of the next doesn't work. (master in the demonstration case. In
# the original repository the branch corresponding to foo did fail)
git submodule add -b foo $commonroot/a foo
git submodule add -b master $commonroot/a master
}}}
I was not able to find the reason why once the current checked out
branch in the original repo failed and in the demo case the master
branch.
However, I find a hint to search further. In one of the clones above the
remote head (git branch -a in one of the cloned dirs) is looking like
origin/HEAD -> origin/master
In my repository the remote head is
origin/HEAD -> origin/foo
So in the example above the HEAD of the origin/HEAD is _not_ pointing to
the current head of the original repository while in the case I
encountered the problem first it do. So maybe that are two bugs maybe
not. I do not know. However the bug I was suffering from can be
reproduced in any case with the above commands.
- -- System Information:
Debian Release: squeeze/sid
APT prefers testing-proposed-updates
APT policy: (500, 'testing-proposed-updates'), (500, 'testing'), (400,
'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1) (ignored: LC_ALL set to
de_DE)
Shell: /bin/sh linked to /bin/dash
Versions of packages git depends on:
ii libc6 2.11.2-7 Embedded GNU C Library: Shared lib
ii libcurl3-gnutls 7.21.0-1 Multi-protocol file transfer libra
ii liberror-perl 0.17-1 Perl module for error/exception ha
ii libexpat1 2.0.1-7 XML parsing C library - runtime li
ii perl-modules 5.10.1-16 Core Perl modules
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
Versions of packages git recommends:
ii less 436-1 pager program similar to more
ii openssh-client [s 1:5.6p1-1~securityfix1 secure shell (SSH) client, for sec
ii patch 2.6-2 Apply a diff file to an original
ii rsync 3.0.7-2 fast remote file copy program (lik
Versions of packages git suggests:
pn git-arch <none> (no description available)
ii git-cvs 1:1.7.2.3-2 fast, scalable, distributed revisi
pn git-daemon-run <none> (no description available)
ii git-doc 1:1.7.2.3-2 fast, scalable, distributed revisi
ii git-email 1:1.7.2.3-2 fast, scalable, distributed revisi
pn git-gui <none> (no description available)
ii git-svn 1:1.7.2.3-2 fast, scalable, distributed revisi
ii gitk 1:1.7.2.3-2 fast, scalable, distributed revisi
pn gitweb <none> (no description available)
- -- no debconf information
Gruß
Klaus
- --
Klaus Ethgen
pub 2048R/D1A4EDE5 2000-02-26 Klaus Ethgen <[email protected]>
Fingerprint: D7 67 71 C4 99 A6 D4 FE EA 40 30 57 3C 88 26 2B
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iQEVAwUBTPaDVp+OKpjRpO3lAQqT2Qf9GoaiHwhM09ntyon/4zSuyZS8HPn73fTQ
N/uzvs4d1b4ubIx/fVp82ah2lA1yy5OtWxsh4NU9z107huUzy1I0FIsxSZr7V+X/
7WgYL/HRIr++iJyD0ZAjdBFdhCdAU8Ok26VQp3uxixg0d5pmFEKLahVv3mlqSxv0
dva7q8wCHmKhIoU2JAbjBpnf0zI9vLPgVsvI6u9pVxtsuSvPNjKv529MZ+Bb1WWw
exVenVGb4vfDp1lXj/m+bVC4qtUP5tb50w7uV15DazePBgswHR4dvMpRlXkq72aF
ikP6jNfP9T+KT12uEISiuuP1cC5s1u8x9vNkhVjqJur9fVHqr5PNAA==
=8n8P
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]