Newbie question about making a bare repository

Previous thread: error: cannot lock ref 'refs/remotes/origin/*' by Nicolas Bock on Monday, June 16, 2008 - 9:53 am. (9 messages)

Next thread: by amery on Monday, June 16, 2008 - 12:42 pm. (1 message)
From: D. Stuart Freeman
Date: Monday, June 16, 2008 - 11:57 am

I have a repository that I made with 'git-svn clone' that I'd like to
make bare but retain the svn info.  Would I just change the "bare" in
.git/config to true?  Is there anything I have to do to remove the
working copy info?

I plan to do this so that a co-worker and I can clone the git repo, and
push our changes back to it, and maintain the "proxy" to svn from that
central location.

-- 
D. Stuart Freeman
Georgia Institute of Technology
From: Miklos Vajna
Date: Monday, June 16, 2008 - 1:57 pm

change it in foo/.git/config and mv foo/.git foo.git

also don't forget that you'll need 'git --bare svn foo' instead of 'git
svn foo' from now.
From: D. Stuart Freeman
Date: Friday, June 20, 2008 - 1:53 pm

I think I've found a flaw in my plan.  Now that the repo is bare I can't
get any changes from upstream.  I run 'git --bare svn fetch' and that
works, but then I have no way to rebase those changes into a local
branch because I don't have a working copy.  Is there a way to see a
remote repo's remotes, and merge/rebase from there?

-- 
D. Stuart Freeman
Georgia Institute of Technology
Previous thread: error: cannot lock ref 'refs/remotes/origin/*' by Nicolas Bock on Monday, June 16, 2008 - 9:53 am. (9 messages)

Next thread: by amery on Monday, June 16, 2008 - 12:42 pm. (1 message)