From: James Tucker <jftucker@gmail.com>
To: git@vger.kernel.org
Subject: bug with 'cl' as alias for 'clone'
Date: Wed, 26 May 2010 09:48:25 -0300 [thread overview]
Message-ID: <E4D176D9-E1D2-4C8F-8F18-11060E49ED80@gmail.com> (raw)
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
next reply other threads:[~2010-05-26 12:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-26 12:48 James Tucker [this message]
2010-05-26 13:07 ` bug with 'cl' as alias for 'clone' Ramkumar Ramachandra
2010-05-26 13:13 ` James Tucker
2010-05-26 16:39 ` Nguyen Thai Ngoc Duy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E4D176D9-E1D2-4C8F-8F18-11060E49ED80@gmail.com \
--to=jftucker@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).