I sometimes forget to cmsenv before running git, after switching from another release area.
Current behavior of cms git tools (cms-addpkg) will make changes
to the old release area, making silently quite a mess.
Please add a check that the current dir is inside of CMSSW_BASE