{"thread":{"id":"9306","subject":"local git clone problem","startedAt":"2007-07-30T08:42:54Z","lastAt":"2007-07-30T08:42:54Z","messageCount":1,"participants":["Nikita V. Youshchenko"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"49084","messageId":"200707301242.54669@sercond.localdomain","threadId":"9306","inReplyTo":null,"subject":"local git clone problem","fromName":"Nikita V. Youshchenko","fromEmail":"yoush@cs.msu.su","sentAt":"2007-07-30T08:42:54Z","receivedAt":"2007-07-30T08:42:54Z","isPatch":false,"sender":{"key":"yoush@cs.msu.su","avatar":null},"body":"Hello.\n\nI'm trying to clone a local git repository and it fails:\n\nnikita@blacky:~/linux-2.6> git clone -l -s -n . ../new\nInitialized empty Git repository in /home/nikita/new/.git/\n/usr/bin/git-clone: line 381: cd: /home/nikita/new/.git/refs/remotes/origin: No such file or directory\n\nThe command is [almost] from git-clone(1) examples.\n\nExamining .git in the new directory after the error:\n\nnikita@blacky:~/new> ls -aR\n.:\n./  ../  .git/\n\n./.git:\n./  ../  branches/  config  description  HEAD  hooks/  info/  objects/  refs/\n\n./.git/branches:\n./  ../\n\n./.git/hooks:\n./   applypatch-msg  post-commit   post-update     pre-commit  update\n../  commit-msg      post-receive  pre-applypatch  pre-rebase\n\n./.git/info:\n./  ../  exclude\n\n./.git/objects:\n./  ../  info/  pack/\n\n./.git/objects/info:\n./  ../  alternates\n\n./.git/objects/pack:\n./  ../\n\n./.git/refs:\n./  ../  heads/  tags/\n\n./.git/refs/heads:\n./  ../\n\n./.git/refs/tags:\n... (same as in .git/refs/tags/ of the original directory)\n\nLooks like for some reason, .git/refs/remotes in the new directory is\nnot created, but referenced.\n\nOriginal repository was created by 'git init' and then populated with several\n'git remote add' and 'git remote update' commands.\n\nThis is with debian package git-core 1:1.5.2.1-1~bpo.1 (current debian\netch-backports version)\n\nIs this a bug?\nIf not, what I'm doing wrong?\nIs it possible to manually 'fix' the original directory such that local\nclones from it will become possible?\n\nNikita\n"}]}