From: Jonathan Nieder <jrnieder@gmail.com>
To: Richard Hartmann <richih.mailinglist@gmail.com>
Cc: "Git List" <git@vger.kernel.org>,
"Nguyễn Thái Ngọc Duy" <pclouds@gmail.com>
Subject: Re: Cloning into an existing, non-empty directory?
Date: Sat, 23 Apr 2011 05:15:00 -0500 [thread overview]
Message-ID: <20110423101500.GB1500@elie> (raw)
In-Reply-To: <BANLkTikY7c7rP+yv5vt2vxw5nu84k_H=Xw@mail.gmail.com>
Hi again,
Richard Hartmann wrote[1]:
> 1) git merge does not seem to understand either of those parameters.
I assume you mean --work-tree and --git-dir. But if true, that would
be a bug.
Based on the script, it looks like you are not passing a branch name
to "git merge". Maybe that is the problem. In any case, it would be
nice to see what command you used, what result was expected, and what
result actually occured.
Side note: git commands respect the GIT_DIR and GIT_WORK_TREE
environment variables in addition to the corresponding command-line
parameters, which can save some typing.
[...]
> 2) running `git pull` as suggested results in:
>
> fatal: /usr/lib/git-core/git-pull cannot be used without a working tree.
>
> which can be worked around by using --work-tree and --git-dir . Not
> ideal, but workeable if I accept the race condition.
Weird. Maybe chdir-ing into the work tree will help? (Traditionally,
git commands tend to be run from within the work tree, so I wouldn't
be too surprised if some commands do not like being run from outside.)
[1] http://thread.gmane.org/gmane.comp.version-control.git/171920/focus=171934
next prev parent reply other threads:[~2011-04-23 10:15 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-21 21:27 Cloning into an existing, non-empty directory? Richard Hartmann
2011-04-21 22:03 ` Jonathan Nieder
2011-04-22 11:21 ` Richard Hartmann
2011-04-23 10:15 ` Jonathan Nieder [this message]
2011-04-23 10:28 ` Nguyen Thai Ngoc Duy
2011-04-23 10:37 ` Jonathan Nieder
2011-04-23 22:11 ` Richard Hartmann
2011-04-25 8:00 ` Jonathan Nieder
2011-04-25 8:40 ` Andreas Schwab
2011-04-25 8:59 ` Jonathan Nieder
2011-04-25 18:37 ` Jeff King
2011-04-25 14:08 ` Richard Hartmann
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=20110423101500.GB1500@elie \
--to=jrnieder@gmail.com \
--cc=git@vger.kernel.org \
--cc=pclouds@gmail.com \
--cc=richih.mailinglist@gmail.com \
/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).