cms-sw / cms-git-tools

CMS Git Helpers
34 stars 26 forks source link

how to choose another location for the reference repository? #41

Closed carolinecollard closed 10 years ago

carolinecollard commented 11 years ago

Hi,

I am a really new user of git and I try do "git cms-addpkg PhysicsTools/PatAlgos". I haven't defined my reference repository, and I allow git to create it. The problem is that I don't have enough space in my home. So it crashes.

Then I try to make a symbolic link from .cmsgit-cache to another disk, but then I receive the message saying that my reference repository is not a local directory.

Then I try to define directly another location with "export CMSSW_GIT_REFERENCE=blablabla". But when trying "git cms-addpkg", it tells me again that this is not a local directory.

Each time, it removes the src directory of my CMSSW release.

Could you help me?

Thanks in advance, Caroline

ktf commented 11 years ago

Are you at CERN?

carolinecollard commented 11 years ago

no. I am working outside cern, on a machine from my lab at Strasbourg.

Le 29 août 2013 à 14:42, Giulio Eulisse a écrit :

Are you at CERN?

— Reply to this email directly or view it on GitHubhttps://github.com/cms-sw/cms-git-tools/issues/41#issuecomment-23485979.

ktf commented 11 years ago

Can you tell me which version of git do you have (git --version).

carolinecollard commented 11 years ago

git version 1.7.4.1

ktf commented 11 years ago

Assuming you are in CMSSW_7_0_X, can you you set up the environment (via cmsenv) set your reference and try again?

carolinecollard commented 11 years ago

no, I am in CMSSW_5_3_11_patch6, following the recipe in https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuidePATReleaseNotes52X#GIT_transition

carolinecollard commented 11 years ago

cmsrel CMSSW_5_3_11_patch6 cd CMSSW_5_3_11_patch6/src/ cmsenv export CMSSW_GIT_REFERENCE=/opt/sbg/data/safe1/cms/ccollard/testGit/reference_repository git cms-addpkg PhysicsTools/PatAlgos No release tags specified, using default CMSSW_5_3_11_patch6. You are on branch CMSSW_5_3_X Checking out PhysicsTools/PatAlgos in tag CMSSW_5_3_11_patch6. Cloning into /grid_mnt/optsbgdata__safe1/cms/ccollard/testGit/CMSSW_5_3_11_patch6/src... fatal: reference repository '/opt/sbg/data/safe1/cms/ccollard/testGit/reference_repository' is not a local directory.

ktf commented 11 years ago

Can you try:

 export CMSSW_GIT_REFERENCE=/tmp/git_reference
carolinecollard commented 11 years ago

Thanks, it works! It just takes 37 minutes to download everything. As it is in a temporary directory, I am afraid I will need to do that regularly. Is it possible to define another location (more stable in time)?

ktf commented 11 years ago

Ciao,

Thanks, it works! It just takes 37 minutes to download everything. As it is in a temporary directory, I am afraid I will need to do that regularly. Is it possible to define another location (more stable in time)?

sorry for the late reply, I was on vacation.

I do not know about the setup of your cluster, so it's hard to tell. You should probably ask to your sys admin if there is any local work directory available which does not get cleaned up (usually that's the case on most clusters).

37 minutes does sound like a lot though. It should do everything in 5 minutes or so. You might want to check again with your sys admin if there is any issue with the network connection.

Ciao,

Giulio

Office: 6-2-25 CERN Tel: +41227671799 GitHub: http://github.com/ktf/