cms-sw / cms-git-tools

CMS Git Helpers
34 stars 26 forks source link

Check if a package exists before doing the read-tree #14

Closed ktf closed 4 years ago

ktf commented 11 years ago

@ferriff had an issue where he got the following:

git cms-addpkg RecoLocalCalo/EcalRecProducer CMSSW_6_2_0_pre8
CMSSW environment not found. Checking out packages in /tmp/ferriff/src
You are on branch CMSSW_6_2_X
Checking out RecoLocalCalo/EcalRecProducer in tag CMSSW_6_2_0_pre8
error: Sparse checkout leaves no entry on working directory
fatal: Could not reset index file to revision 'CMSSW_6_2_0_pre8'

the actual error is a missing s in the name of the package, however the error message does not help. Maybe fix this by checking the index before doing the read-tree?

smuzaffar commented 4 years ago

has been implement https://github.com/cms-sw/cms-git-tools/pull/40

cmsbuild commented 4 years ago

A new Issue was created by @ktf Giulio Eulisse.

@Dr15Jones, @silviodonato, @dpiparo, @smuzaffar, @makortel can you please review it and eventually sign/assign? Thanks.

cms-bot commands are listed here