{"thread":{"id":"23913","subject":"bug with 'cl' as alias for 'clone'","startedAt":"2010-05-26T12:48:25Z","lastAt":"2010-05-26T16:39:13Z","messageCount":4,"participants":["James Tucker","Ramkumar Ramachandra","Nguyen Thai Ngoc Duy"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"142363","messageId":"E4D176D9-E1D2-4C8F-8F18-11060E49ED80@gmail.com","threadId":"23913","inReplyTo":null,"subject":"bug with 'cl' as alias for 'clone'","fromName":"James Tucker","fromEmail":"jftucker@gmail.com","sentAt":"2010-05-26T12:48:25Z","receivedAt":"2010-05-26T12:48:25Z","isPatch":false,"sender":{"key":"jftucker@gmail.com","avatar":null},"body":"I've been running the following aliases for a long time now:\n\nalias g='git' # in bash\n\n% cat ~/.gitconfig | grep clone\n  cl = clone\n\nThis appears to still be calling the right UI command:\n\n% g cl\nYou must specify a repository to clone.\n...\n\nBut when I try to actually clone a repository:\n\n% ls rdbi\nls: rdbi: No such file or directory\n% g cl http://github.com/erikh/rdbi.git\nfatal: cannot set work tree after initialization\n* ls -la rdbi/\ntotal 0\ndrwxr-xr-x    2 raggi  staff    68 26 May 09:46 .\ndrwxr-xr-x  251 raggi  staff  8534 26 May 09:46 ..\n\nSo then, I try it with 'clone' instead of 'cl', and it works (after removing the dead initialized repo in ./rdbi):\n\n* rm -rf rdbi/\n% g clone http://github.com/erikh/rdbi.git\nInitialized empty Git repository in ...\n\nI could look into this later on when I'm not at $work, but as I have no knowledge of the UI internals, it'd be great if someone in the know could track this down.\n\nThanks in advance,\n\nJames"},{"id":"142364","messageId":"AANLkTinSKgn5IgO3F-gqy-7RTs36Xe_9NB1dvRQrq4SK@mail.gmail.com","threadId":"23913","inReplyTo":"E4D176D9-E1D2-4C8F-8F18-11060E49ED80@gmail.com","subject":"Re: bug with 'cl' as alias for 'clone'","fromName":"Ramkumar Ramachandra","fromEmail":"artagnon@gmail.com","sentAt":"2010-05-26T13:07:18Z","receivedAt":"2010-05-26T13:07:18Z","isPatch":false,"sender":{"key":"r@artagnon.com","avatar":"https://avatars.githubusercontent.com/u/37226?v=4"},"body":"Hi,\n\nOn Wed, May 26, 2010 at 2:48 PM, James Tucker <jftucker@gmail.com> wrote:\n> % g cl http://github.com/erikh/rdbi.git\n> fatal: cannot set work tree after initialization\n\nI'm not able to reproduce this with Git 1.7. Which version are you using?\n\n-- Ram\n"},{"id":"142365","messageId":"CD06D0C2-BE89-4ECE-A453-CF5FD69A4B55@gmail.com","threadId":"23913","inReplyTo":"AANLkTinSKgn5IgO3F-gqy-7RTs36Xe_9NB1dvRQrq4SK@mail.gmail.com","subject":"Re: bug with 'cl' as alias for 'clone'","fromName":"James Tucker","fromEmail":"jftucker@gmail.com","sentAt":"2010-05-26T13:13:16Z","receivedAt":"2010-05-26T13:13:16Z","isPatch":false,"sender":{"key":"jftucker@gmail.com","avatar":null},"body":"\nOn 26 May 2010, at 10:07, Ramkumar Ramachandra wrote:\n\n> Hi,\n> \n> On Wed, May 26, 2010 at 2:48 PM, James Tucker <jftucker@gmail.com> wrote:\n>> % g cl http://github.com/erikh/rdbi.git\n>> fatal: cannot set work tree after initialization\n> \n> I'm not able to reproduce this with Git 1.7. Which version are you using?\n\nI was using 1.7.1.\n\nSomeone in the IRC channel 'doener' spotted it after some tracing and so on. I was cloning inside a working dir of another repo, and this was causing the problem.\n\nThanks to everyone for their help!\n"},{"id":"142382","messageId":"AANLkTikVStq4KCp94GplKl0TwANKYlzMmp3IZrwvP6fU@mail.gmail.com","threadId":"23913","inReplyTo":"E4D176D9-E1D2-4C8F-8F18-11060E49ED80@gmail.com","subject":"Re: bug with 'cl' as alias for 'clone'","fromName":"Nguyen Thai Ngoc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2010-05-26T16:39:13Z","receivedAt":"2010-05-26T16:39:13Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Wed, May 26, 2010 at 2:48 PM, James Tucker <jftucker@gmail.com> wrote:\n> I've been running the following aliases for a long time now:\n>\n> alias g='git' # in bash\n>\n> % cat ~/.gitconfig | grep clone\n>  cl = clone\n>\n> This appears to still be calling the right UI command:\n>\n> % g cl\n> You must specify a repository to clone.\n> ...\n>\n> But when I try to actually clone a repository:\n>\n> % ls rdbi\n> ls: rdbi: No such file or directory\n> % g cl http://github.com/erikh/rdbi.git\n> fatal: cannot set work tree after initialization\n\nThere is something with alias and work tree setup that I should have\naddressed it with my series. I suspect that is the cause of this.\nUnfortunately I have been too lazy these days. I'll try to work on it\nagain maybe this weekend.\n-- \nDuy\n"}]}