From: Jakub Narebski <jnareb@gmail.com>
To: git@vger.kernel.org
Subject: Re: bare repositories: packing and fetching
Date: Fri, 15 Sep 2006 20:11:41 +0200 [thread overview]
Message-ID: <eeeqbv$8na$1@sea.gmane.org> (raw)
In-Reply-To: 450AEB37.3090909@shadowen.org
Andy Whitcroft wrote:
> I was trying to make a bare repo to stage linus' main tree. As this was
> only to be a local tree for others to pull from I thought that I could
> clone his tree 'bare' and then fetch into that on a regular basis. That
> does not appear to be the case? Both git fetch and git repack say 'not
> a git repository .git' and bail.
>
> Is this expected behaviour. Do I have to have all the checked out files?
No, but perhaps git doesn't detect _where_ is a git repository. With full
repository git tries to find .git somewhere in the directory, or it's
parents, if I understand correctly.
If running git commands from the inside of bare repository doesn't work, try
setting enviromental variable GIT_DIR (e.g. GIT_DIR=git.git git fetch
origin), or with git 1.4.2 or newer with --git-dir option (e.g. git
--git-dir=git fetch origin).
--
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
next prev parent reply other threads:[~2006-09-15 18:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-15 18:04 bare repositories: packing and fetching Andy Whitcroft
2006-09-15 18:11 ` Jakub Narebski [this message]
2006-09-15 18:50 ` Johannes Schindelin
2006-09-15 20:44 ` Junio C Hamano
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='eeeqbv$8na$1@sea.gmane.org' \
--to=jnareb@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).