Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 392744

Summary: Git migration request (Tools/Target Management project)
Product: Community Reporter: Anna Dushistova <anna.dushistova>
Component: GitAssignee: Eclipse Webmaster <webmaster>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: dmcknigh, josemg, mober.at+eclipse
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Anna Dushistova CLA 2012-10-24 08:19:47 EDT
We would like to request cvs to git migration for the Tools Target Management project.
1)Migration timeline:
We would like it to be done on Monday, 29th of October.

2)Mapping of current code to new Git repos:
We will be restructuring our current 2 CVS modules(org.eclipse.tm.core and org.eclipse.tm.rse) into one git repository org.eclipse.tm.git. 

3)your decision regarding existing code (archive or import)
We will be importing the whole history. This will be done by using cvs2git script.

I am planning to populate the git repository from the latest http://archive.eclipse.org/arch/ after it is generated on Sunday, 28th of October,
and after the repo is ready, I would like webmasters to make it(http://git.eclipse.org/c/tm/org.eclipse.tm.git/) live.

4)A description for each of your repositories.
"Target Management git repository"
Comment 1 Anna Dushistova CLA 2012-10-24 08:21:10 EDT
Right now the repository is called org.eclipse.tm, but I'll rename it on Sunday in the final version.
Comment 2 Eclipse Webmaster CLA 2012-10-24 09:57:40 EDT
Just so you have another option:

If you'd like to re-organize the existing repos in CVS(or you can list the changes here and we'll do it) Webmaster can run the imports.

-M.
Comment 3 Anna Dushistova CLA 2012-10-24 10:38:49 EDT
(In reply to comment #2)
> Just so you have another option:
> 
> If you'd like to re-organize the existing repos in CVS(or you can list the
> changes here and we'll do it) Webmaster can run the imports.
> 

Matt, I got it all covered, I just need you to move my git repo into its final place and make it writable on Oct 29(not now!).
Comment 4 Eclipse Webmaster CLA 2012-10-24 11:11:44 EDT
Ok, you may want to remind us on Monday.

-M.
Comment 5 Anna Dushistova CLA 2012-10-28 18:27:08 EDT
(In reply to comment #4)
> Ok, you may want to remind us on Monday.

I prepared the repo. It's located in /gitroot/tm/ and called org.eclipse.tm.git.
You can make it live any time now. Thanks!
Comment 6 Eclipse Webmaster CLA 2012-10-29 14:58:28 EDT
I"ve taken a look and I"m not sure whats need frmo Webmaster.  The repo has the right perms, and it's listed on http://git.eclipse.org/c/tm/org.ecipse.tm.git.

Am I missing something?

-M.
Comment 7 Anna Dushistova CLA 2012-10-29 15:42:20 EDT
(In reply to comment #6)
> I"ve taken a look and I"m not sure whats need frmo Webmaster.  The repo has
> the right perms, and it's listed on
> http://git.eclipse.org/c/tm/org.ecipse.tm.git.
> 
> Am I missing something?
> 
> -M.

I have issues pushing. My console log is below:
ssid:org.eclipse.tm anna$ git push
Password: 
Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 460 bytes, done.
Total 3 (delta 1), reused 1 (delta 1)
remote: error: refusing to update checked out branch: refs/heads/master
remote: error: By default, updating the current branch in a non-bare repository
remote: error: is denied, because it will make the index and work tree inconsistent
remote: error: with what you pushed, and will require 'git reset --hard' to match
remote: error: the work tree to HEAD.
remote: error: 
remote: error: You can set 'receive.denyCurrentBranch' configuration variable to
remote: error: 'ignore' or 'warn' in the remote repository to allow pushing into
remote: error: its current branch; however, this is not recommended unless you
remote: error: arranged to update its work tree to match what you pushed in some
remote: error: other way.
remote: error: 
remote: error: To squelch this message and still keep the default behaviour, set
remote: error: 'receive.denyCurrentBranch' configuration variable to 'refuse'.
To ssh://adushistova@git.eclipse.org/gitroot/tm/org.eclipse.tm.git
 ! [remote rejected] master -> master (branch is currently checked out)
error: failed to push some refs to 'ssh://adushistova@git.eclipse.org/gitroot/tm/org.eclipse.tm.git'
ssid:org.eclipse.tm anna$ 

Is it something I can fix myself or webmasters could help with it?
Comment 8 Anna Dushistova CLA 2012-10-29 16:17:47 EDT
I fixed it with git config --bool core.bare true. I think you can freeze the cvs then.

(In reply to comment #7)
> (In reply to comment #6)
> > I"ve taken a look and I"m not sure whats need frmo Webmaster.  The repo has
> > the right perms, and it's listed on
> > http://git.eclipse.org/c/tm/org.ecipse.tm.git.
> > 
> > Am I missing something?
> > 
> > -M.
> 
> I have issues pushing. My console log is below:
> ssid:org.eclipse.tm anna$ git push
> Password: 
> Counting objects: 5, done.
> Delta compression using up to 2 threads.
> Compressing objects: 100% (2/2), done.
> Writing objects: 100% (3/3), 460 bytes, done.
> Total 3 (delta 1), reused 1 (delta 1)
> remote: error: refusing to update checked out branch: refs/heads/master
> remote: error: By default, updating the current branch in a non-bare
> repository
> remote: error: is denied, because it will make the index and work tree
> inconsistent
> remote: error: with what you pushed, and will require 'git reset --hard' to
> match
> remote: error: the work tree to HEAD.
> remote: error: 
> remote: error: You can set 'receive.denyCurrentBranch' configuration
> variable to
> remote: error: 'ignore' or 'warn' in the remote repository to allow pushing
> into
> remote: error: its current branch; however, this is not recommended unless
> you
> remote: error: arranged to update its work tree to match what you pushed in
> some
> remote: error: other way.
> remote: error: 
> remote: error: To squelch this message and still keep the default behaviour,
> set
> remote: error: 'receive.denyCurrentBranch' configuration variable to
> 'refuse'.
> To ssh://adushistova@git.eclipse.org/gitroot/tm/org.eclipse.tm.git
>  ! [remote rejected] master -> master (branch is currently checked out)
> error: failed to push some refs to
> 'ssh://adushistova@git.eclipse.org/gitroot/tm/org.eclipse.tm.git'
> ssid:org.eclipse.tm anna$ 
> 
> Is it something I can fix myself or webmasters could help with it?
Comment 9 Eclipse Webmaster CLA 2012-10-30 11:00:44 EDT
Ok, I've frozen CVS.

-M.