Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need help starting with Git #208

Closed
abonato opened this issue Aug 1, 2013 · 3 comments
Closed

Need help starting with Git #208

abonato opened this issue Aug 1, 2013 · 3 comments
Assignees

Comments

@abonato
Copy link

abonato commented Aug 1, 2013

Dear Git support,

I am very very new to Git (started this morning).
I went through the tutorial by G. Eulisse and the FAQ pages, but I have
some problems even checking out a single package.

I would like to check out this package
https://github.com/h2gglobe/h2gglobe/tree/master/VertexAnalysis

I tried to do that by typing:

~/work/PhysAnalysis/UPGRADE/CMSSW_6_1_2_SLHC6_patch1/src -$>git cms-addpkg h2gglobe/VertexAnalysis
No release tags specified, using default CMSSW_6_1_2_SLHC6_patch1.
You are on branch CMSSW_6_1_X_SLHC
Checking out h2gglobe/VertexAnalysis in tag CMSSW_6_1_2_SLHC6_patch1.
Cloning into '/afs/cern.ch/work/b/bonato/PhysAnalysis/UPGRADE/CMSSW_6_1_2_SLHC6_patch1/src'...
remote: Counting objects: 56, done.
remote: Compressing objects: 100% (37/37), done.
remote: Total 42 (delta 27), reused 18 (delta 5)
Unpacking objects: 100% (42/42), done.
error: Sparse checkout leaves no entry on working directory
fatal: Could not reset index file to revision 'CMSSW_6_1_2_SLHC6_patch1'.

What does this error mean ? How can I fix it ?

Many thanks,
Alessio

@Dr15Jones
Copy link
Contributor

Hi Alessio,
I'm afraid you can't use 'git cms-addpkg' for this particular case. 'git cms-addpkg' can only be used to either get packages from the official cmssw repository or from a repository which was forked from the official cmssw repository. That isn't the case for you. I would suggest you look at
#178

and try to apply the solution suggested there.

Chris

Christopher Jones
Fermi National Accelerator Laboratory
[email protected]

@davidlt
Copy link
Contributor

davidlt commented Aug 1, 2013

One of many quick ways:

export SCRAM_ARCH=slc5_amd64_gcc472
scram p CMSSW_6_1_2_SLHC6_patch1
cd CMSSW_6_1_2_SLHC6_patch1
eval $(scram r -sh)
cd src
git cms-init
git remote add h2gglobe https://github.com/h2gglobe/h2gglobe.git
git config core.sparsecheckout true
echo VertexAnalysis >> .git/info/sparse-checkout
git pull h2gglobe master
mkdir SomeSubsystem
mv VertexAnalysis SomeSubsystem
scram b -v -k -j 12 >&! b.log

Worked for me. Compiled fine, just one warning. Only issue I see is that pulling/fetching from h2gglobe repository is extremely long for some unknown reason.

@ktf
Copy link
Contributor

ktf commented Aug 8, 2013

Ciao Alessio. Please have a look at:

http://cms-sw.github.io/cmssw/tutorial-merge-usercode-repository-in-cmssw.html

to see if it makes sense for you. Please close this thread if it does.

@ghost ghost assigned abonato Aug 8, 2013
@ktf ktf closed this as completed Oct 16, 2013
jshlee referenced this issue in gem-sw/cmssw May 27, 2014
…HC13_patch2

Csc trigger upgrade gem rpc for slhc13 patch2
gpetruc added a commit to gpetruc/cmssw that referenced this issue Feb 10, 2015
parbol pushed a commit to parbol/cmssw that referenced this issue Mar 5, 2015
Merge in Heppy branch after PR cms-sw#208 (jet pt sorting)
makortel pushed a commit to makortel/cmssw that referenced this issue Apr 22, 2015
Added automatic merge for 7_4_X in cmssw and cmsdist
arizzi added a commit to arizzi/cmssw that referenced this issue Oct 24, 2015
added MC RunIISpring15MiniAODv2 datasets
mcepeda pushed a commit to mcepeda/cmssw that referenced this issue Nov 17, 2016
tstreble pushed a commit to tstreble/cmssw that referenced this issue Aug 9, 2018
hqucms pushed a commit to hqucms/cmssw that referenced this issue Oct 18, 2018
fwyzard pushed a commit to fwyzard/cmssw that referenced this issue Dec 7, 2018
…Heterogeneous (cms-sw#208)

As an optimisation, move the default non-regional case to the EventSetup, and allocate,  fill and transfer event-by-event only for the regional case.
ttrk pushed a commit to ttrk/cmssw that referenced this issue Jun 13, 2019
build by default tries to merge a pull request, which fails for direct
commits. make this step conditional on the whether the environment
variable is defined.
slava77 pushed a commit to slava77/cmssw that referenced this issue Oct 9, 2021
Explore not storing/copying the sorted hits and hit prefetching.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants