* bare repositories: packing and fetching
@ 2006-09-15 18:04 Andy Whitcroft
2006-09-15 18:11 ` Jakub Narebski
2006-09-15 20:44 ` Junio C Hamano
0 siblings, 2 replies; 4+ messages in thread
From: Andy Whitcroft @ 2006-09-15 18:04 UTC (permalink / raw)
To: Git Mailing List
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?
-apw
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bare repositories: packing and fetching
2006-09-15 18:04 bare repositories: packing and fetching Andy Whitcroft
@ 2006-09-15 18:11 ` Jakub Narebski
2006-09-15 18:50 ` Johannes Schindelin
2006-09-15 20:44 ` Junio C Hamano
1 sibling, 1 reply; 4+ messages in thread
From: Jakub Narebski @ 2006-09-15 18:11 UTC (permalink / raw)
To: git
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bare repositories: packing and fetching
2006-09-15 18:11 ` Jakub Narebski
@ 2006-09-15 18:50 ` Johannes Schindelin
0 siblings, 0 replies; 4+ messages in thread
From: Johannes Schindelin @ 2006-09-15 18:50 UTC (permalink / raw)
To: Jakub Narebski; +Cc: git
Hi,
On Fri, 15 Sep 2006, Jakub Narebski wrote:
> 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.
Exactly. Since there is no .git directory, git does not know where it
should look for the repository.
Try "git --bare fetch".
Hth,
Dscho
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bare repositories: packing and fetching
2006-09-15 18:04 bare repositories: packing and fetching Andy Whitcroft
2006-09-15 18:11 ` Jakub Narebski
@ 2006-09-15 20:44 ` Junio C Hamano
1 sibling, 0 replies; 4+ messages in thread
From: Junio C Hamano @ 2006-09-15 20:44 UTC (permalink / raw)
To: Andy Whitcroft; +Cc: git
Andy Whitcroft <apw@shadowen.org> writes:
> 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?
cd $that_repository && GIT_DIR=. git fetch
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-09-15 20:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-15 18:04 bare repositories: packing and fetching Andy Whitcroft
2006-09-15 18:11 ` Jakub Narebski
2006-09-15 18:50 ` Johannes Schindelin
2006-09-15 20:44 ` Junio C Hamano
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).