create new calice_calib DESY SVN server repository
==== cd /afs/desy.de/group/flc/pool/hcal/calice_soft/admin/calice_calib ====
1.1 svn ls https://svnsrv.desy.de/desy/calice
1.2 svn mkdir https://svnsrv.desy.de/desy/calice/calice_calib -m "Create calice_calib dir"
1.3 svn mkdir https://svnsrv.desy.de/desy/calice/calice_calib/trunk https://svnsrv.desy.de/desy/calice/calice_calib/branches https://svnsrv.desy.de/desy/calice/calice_calib/tags -m "Initial directory structure"
1.4 git svn init -s https://svnsrv.desy.de/desy/calice/calice_calib
1.5 git svn fetch --use-log-author --add-author-from
1.6 git branch -a
2.1 git-rev-list --parents devel |grep '^.\{40\}$'
4191204a4dd9470c374e6058e4c13cc50c329bef
2.2 git rev-parse trunk
b286994f4d70a4c57ed188017a8b99ded5c2c078
2.3 touch .git/info/grafts
2.4 echo 4191204a4dd9470c374e6058e4c13cc50c329bef b286994f4d70a4c57ed188017a8b99ded5c2c078 >> .git/info/grafts
2.4 git filter-branch -- remotes/trunk --all
2.5 rm .git/info/grafts
2.6 git svn rebase
3.1 git svn dcommit -n
3.2 git svn dcommit
create new calice_calib local git repository
==== admin:==== cd /afs/desy.de/group/flc/pool/hcal/calice_soft/admin create clice_calib software package cd calice_calib git init git branch devel git checkout devel ==== git-repo: ==== cd /group/hcal/calice_soft/git_repo git clone --bare /afs/desy.de/group/flc/pool/hcal/calice_soft/admin/calice_calib calice_calib vi HEAD, change master to devel ==== admin: ==== cd /afs/desy.de/group/flc/pool/hcal/calice_soft/admin/calice_calib git remote add publish /group/hcal/calice_soft/git_repo/calice_calib git push --all publish ==== webpage for git-repo: ==== cd /group/hcal/calice_soft/git_repo/calice_calib cd hooks mv post-update.sample post-update cd ../ vi description, write "CALICE calibration package" inside here.
Add ''publish
git-remote add publish /afs/desy.de/group/flc/hcal/calice_soft/git_repo/calice_cmake git fetch publish git branch -a
Add user changes
git-remote add nfeege ssh://flc22//data//nfeege/CALICE_SW/calice_devel/calice_db_tools git-remote update
Problems with ''git-remote add and update''
- I got an error like this:
git-remote add Nils ssh://flc22//data/nfeege/CALICE_SW/calice_clean/calice_hh_proc git-remote update Updating origin Updating publish Updating Nils remote: usage: git-pack-objects [{ -q | --progress | --all-progress }] remote: [--max-pack-size=N] [--local] [--incremental] remote: [--window=N] [-error: git upload-pack: git-pack-objects died with error. fatal: git upload-pack: aborting due to possible repository corruption on the remote side. -window-memory=N] [--depth=N] remote: [--no-reuse-delta] [--no-reuse-object] [--delta-base-offset] remote: [--threads=N] [--non-empty] [--revs [--unpacked | --all]*] [--reflog] remote: [--stdout | base-name] [--keep-unreachable] [<ref-list | <object-list] remote: aborting due to possible repository corruption on the remote side. fatal: protocol error: bad pack header error: Could not fetch Nils
I miss double slash // there.
git-remote rm Nils git-remote add nfeege ssh://flc22//data//nfeege/CALICE_SW/calice_clean/calice_hh_proc git-remote update Updating origin Updating publish Updating nfeege From ssh://flc22//data//nfeege/CALICE_SW/calice_clean/calice_hh_proc * [new branch] devel -> nfeege/devel
Problems with ''repo/publish''
- If you get an error like this:
To /afs/desy.de/group/flc/hcal/calice_soft/git_repo/calice_reco ! [rejected] devel -> devel (non-fast forward) error: failed to push some refs to '/afs/desy.de/group/flc/hcal/calice_soft/git_repo/calice_reco'
This happens after the git svn rebase. Then you need to:
cd calice_reco git push -f publish :
Problems with '''git svn dcommit'''
- If you get an error like:
Committing to https://svnsrv.desy.de/desy/calice/calice_reco/trunk ... M raw2calohit/CMakeLists.txt Error in tempfile() using .git/XXXXXXXXXX: Parent directory (.git/) is not writable at /afs/desy.de/group/flc/opt/git/.i586_rhel40/1.6.3.2/lib/perl5/site_perl/5.8.5/Git.pm line 1040
don't panic, this is probably because git has problems in coping with linux and afs permission rights. In this specific case, we had a git-svn repository created by me (Angele), and Shaojun was not able to git svn dcommit. The solution is to give write rights to write to the group:
cd calice_run chmod -R g+w *
