-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Labels
Description
I just encountered the following situation:
- checkout a CMSSW release as usual, call
git cms-init - create a new package, add & commit files inside the new package
- call
git cms-addpkgto get an existing package
The result is that the tracked files from the new package are removed from the working directory by the sparse checkout that occurs when git cms-addpkg is called. (I had to call git cms-addpkg for the new package to get the files back.)
I'm not immediately sure if there's a way to resolve this problem. Maybe the first time git cms-addpkg is called (identified by the sparse-checkout file having default contents?), it could call git cms-sparse-checkout, similar to what the git cms-[]-topic commands do.