Comments (1)
Something that might be related that I just encountered (and bear with me as I'm just now getting started with git):
In a fresh temp 5_3_11 working area, I tried
git cms-addpkg DataFormats/MuonReco
and it wanted to create the reference git repository:
Your reference git repository does not seem to exist, would you like to create it? [ y / N / ? ] ?
I typed ?ENTER since I wanted more info, and apparently the was not a bright idea:
Answering yes will create a new cache directory in $CMSSW_GIT_REFERENCE:
i.e. /uscms/home/tucker/.cmsgit-cache
and put there a copy of the official CMSSW repository. git cms-addpkg
will then reuse this information to keep your CMSSW workareas to a
minimal size. The initial checkout could take a few minutes, but all
the others should then take only a few seconds.Just say yes.
Your reference git repository does not seem to exist, would you like to create it? [ y / N / ? ]
Cloning into /uscms/home/tucker/private/tmp/CMSSW_5_3_11/src...
fatal: reference repository 'none' is not a local directory.
I.e. the ENTER keypress amounted to specifying N on the second "create it?" prompt -- not what I was expecting, but fine.
The reason I am complaining about all this is that this seems to have had the side effect of deleting the src directory out of the working area. src was my $PWD at the time, if that helps. Also, src was empty, so no real problem, but I wonder if it could be dangerous (probably just a simple 'rmdir' but I do not know).
I recreated the src directory and tried the addpkg command again, answering y to the "create it?" prompt. It did its thing and got to the point where it asked me for my keyphrase, which I returned to after several minutes of coffee-getting. I guess there was a timeout somewhere:
No release tags specified, using default CMSSW_5_3_11.
You are on branch CMSSW_5_3_X
Checking out DataFormats/MuonReco in tag CMSSW_5_3_11.
Your reference git repository does not seem to exist, would you like to create it? [ y / N / ? ] yCloning into bare repository /uscms/home/tucker/.cmsgit-cache...
remote: Counting objects: 1095224, done.
remote: Compressing objects: 100% (276013/276013), done.
remote: Total 1095224 (delta 839677), reused 1065102 (delta 810104)
Receiving objects: 100% (1095224/1095224), 291.93 MiB | 23.67 MiB/s, done.
Resolving deltas: 100% (839677/839677), done.
Fetching origin
From https://github.com/cms-sw/cmssw
branch HEAD -> FETCH_HEAD
Cloning into /uscms/home/tucker/private/tmp/CMSSW_5_3_11/src...
Enter passphrase for key '/uscms/home/tucker/.ssh/id_rsa':
Enter passphrase for key '/uscms/home/tucker/.ssh/id_rsa':
Connection closed by 204.232.175.90
fatal: The remote end hung up unexpectedly
after which the src directory has disappeared again! Once more recreating src and trying addpkg, it succeeded (and did not delete the src directory).
Sorry if this should have been filed as a separate issue.
from cms-git-tools.
Related Issues (20)
- git-cms-addpkg and new packages HOT 1
- Check if a package exists before doing the read-tree HOT 2
- Add -p / --project option to specify repository. HOT 3
- cms-addpkg fails if $CMSSW_BASE/src is not empty HOT 2
- cms-addpkg doesn't recognize CMSSW_6_1_X_SLHC branch HOT 2
- Using --https option fails when creating the reference repository.
- make addpackage check the current dir is inside of CMSSW_BASE HOT 3
- user.github vs github.user in gitconfig HOT 2
- how to choose another location for the reference repository? HOT 10
- git cms-addpkg gives unclear error message when package not found HOT 2
- "You don't seem to have a personal repository," when I do have a personal repository HOT 7
- git-cms-addpkg resets staged (but not yet commited) changes without a warning. HOT 7
- please create a "public" OAuth API key HOT 6
- Add conflict resolution options to git-cms-merge-topic.
- Do not use /dev/stdout or stderr, running under sudo fails with permission errors. HOT 7
- Add a --continue feature to the cms-merge-topic HOT 2
- git cms-remote HOT 3
- Testing PRs from non cms-sw/cmssw repositories HOT 2
- git-cms-checkdeps does not create poison files for files which are renamed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cms-git-tools.