* bug with 'cl' as alias for 'clone'
@ 2010-05-26 12:48 James Tucker
2010-05-26 13:07 ` Ramkumar Ramachandra
2010-05-26 16:39 ` Nguyen Thai Ngoc Duy
0 siblings, 2 replies; 4+ messages in thread
From: James Tucker @ 2010-05-26 12:48 UTC (permalink / raw)
To: git
I've been running the following aliases for a long time now:
alias g='git' # in bash
% cat ~/.gitconfig | grep clone
cl = clone
This appears to still be calling the right UI command:
% g cl
You must specify a repository to clone.
...
But when I try to actually clone a repository:
% ls rdbi
ls: rdbi: No such file or directory
% g cl http://github.com/erikh/rdbi.git
fatal: cannot set work tree after initialization
* ls -la rdbi/
total 0
drwxr-xr-x 2 raggi staff 68 26 May 09:46 .
drwxr-xr-x 251 raggi staff 8534 26 May 09:46 ..
So then, I try it with 'clone' instead of 'cl', and it works (after removing the dead initialized repo in ./rdbi):
* rm -rf rdbi/
% g clone http://github.com/erikh/rdbi.git
Initialized empty Git repository in ...
I 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.
Thanks in advance,
James
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bug with 'cl' as alias for 'clone'
2010-05-26 12:48 bug with 'cl' as alias for 'clone' James Tucker
@ 2010-05-26 13:07 ` Ramkumar Ramachandra
2010-05-26 13:13 ` James Tucker
2010-05-26 16:39 ` Nguyen Thai Ngoc Duy
1 sibling, 1 reply; 4+ messages in thread
From: Ramkumar Ramachandra @ 2010-05-26 13:07 UTC (permalink / raw)
To: James Tucker; +Cc: git
Hi,
On Wed, May 26, 2010 at 2:48 PM, James Tucker <jftucker@gmail.com> wrote:
> % g cl http://github.com/erikh/rdbi.git
> fatal: cannot set work tree after initialization
I'm not able to reproduce this with Git 1.7. Which version are you using?
-- Ram
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bug with 'cl' as alias for 'clone'
2010-05-26 13:07 ` Ramkumar Ramachandra
@ 2010-05-26 13:13 ` James Tucker
0 siblings, 0 replies; 4+ messages in thread
From: James Tucker @ 2010-05-26 13:13 UTC (permalink / raw)
To: Ramkumar Ramachandra; +Cc: git
On 26 May 2010, at 10:07, Ramkumar Ramachandra wrote:
> Hi,
>
> On Wed, May 26, 2010 at 2:48 PM, James Tucker <jftucker@gmail.com> wrote:
>> % g cl http://github.com/erikh/rdbi.git
>> fatal: cannot set work tree after initialization
>
> I'm not able to reproduce this with Git 1.7. Which version are you using?
I was using 1.7.1.
Someone 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.
Thanks to everyone for their help!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bug with 'cl' as alias for 'clone'
2010-05-26 12:48 bug with 'cl' as alias for 'clone' James Tucker
2010-05-26 13:07 ` Ramkumar Ramachandra
@ 2010-05-26 16:39 ` Nguyen Thai Ngoc Duy
1 sibling, 0 replies; 4+ messages in thread
From: Nguyen Thai Ngoc Duy @ 2010-05-26 16:39 UTC (permalink / raw)
To: James Tucker; +Cc: git
On Wed, May 26, 2010 at 2:48 PM, James Tucker <jftucker@gmail.com> wrote:
> I've been running the following aliases for a long time now:
>
> alias g='git' # in bash
>
> % cat ~/.gitconfig | grep clone
> cl = clone
>
> This appears to still be calling the right UI command:
>
> % g cl
> You must specify a repository to clone.
> ...
>
> But when I try to actually clone a repository:
>
> % ls rdbi
> ls: rdbi: No such file or directory
> % g cl http://github.com/erikh/rdbi.git
> fatal: cannot set work tree after initialization
There is something with alias and work tree setup that I should have
addressed it with my series. I suspect that is the cause of this.
Unfortunately I have been too lazy these days. I'll try to work on it
again maybe this weekend.
--
Duy
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-05-26 16:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-26 12:48 bug with 'cl' as alias for 'clone' James Tucker
2010-05-26 13:07 ` Ramkumar Ramachandra
2010-05-26 13:13 ` James Tucker
2010-05-26 16:39 ` Nguyen Thai Ngoc Duy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).