Re: gitweb wishlist
- From
- Thomas Glanzmann <sithglan@stud.uni-erlangen.de>
- Date
- May 24, 2005, 16:17 UTC
- Message-ID
- <20050524161745.GA9537@cip.informatik.uni-erlangen.de>
- In-Reply-To
- <Pine.LNX.4.58.0505240110580.2307@ppc970.osdl.org>
Hello Linus, I tried cvs2git and have the following problem:
--------------------- PatchSet 26 Date: 1998/06/20 03:53:44 Author: roessler Branch: mutt-0-93 Ancestor branch: HEAD Tag: (none) Log: documenting alias-path
Members: doc/manual.sgml:1.2->1.2.2.1
---------------------
And your script does that:
export GIT_COMMITTER_NAME=roessler export GIT_COMMITTER_EMAIL=roessler export GIT_AUTHOR_NAME=roessler export GIT_AUTHOR_EMAIL=roessler export GIT_AUTHOR_DATE='1998/06/20 03:53:44' ln -sf refs/heads/'master' .git/HEAD git-read-tree -m HEAD git-checkout-cache -f -u -a mkdir -p doc co -p -r1.2.2.1 '/home/cip/adm/sithglan/work/mutt/cvsrepository/doc/Attic/manual.sgml,v' > 'doc/manual.sgml' git-update-cache --add -- 'doc/manual.sgml' tree=$(git-write-tree) cat > .cmitmsg <<EOFMSG documenting alias-path EOFMSG commit=$(cat .cmitmsg | git-commit-tree $tree -p HEAD) echo $commit > .git/HEAD
The problem might be that this is the first commit in the branch. But I thought it should end up in refs/heads/mutt-0-93. The problem is that this ends up a empty file and next time the script is working on it, it fails because the branch is empty:
+ export GIT_COMMITTER_NAME=roessler + GIT_COMMITTER_NAME=roessler + export GIT_COMMITTER_EMAIL=roessler + GIT_COMMITTER_EMAIL=roessler + export GIT_AUTHOR_NAME=roessler + GIT_AUTHOR_NAME=roessler + export GIT_AUTHOR_EMAIL=roessler + GIT_AUTHOR_EMAIL=roessler + export 'GIT_AUTHOR_DATE=1998/06/20 07:12:32' + GIT_AUTHOR_DATE=1998/06/20 07:12:32 + ln -sf refs/heads/mutt-0-93 .git/HEAD + git-read-tree -m HEAD usage: git-read-tree (<sha> | -m <sha1> [<sha2> <sha3>]) + git-checkout-cache -f -u -a + co -p -r1.1.1.1.2.2 /home/cip/adm/sithglan/work/mutt/cvsrepository/handler.c,v /home/cip/adm/sithglan/work/mutt/cvsrepository/handler.c,v --> standard output revision 1.1.1.1.2.2 + git-update-cache --add -- handler.c ++ git-write-tree + tree=9e4d085838e4e62a8c4236a6713a7dd8d7b07b4e + cat ++ cat .cmitmsg ++ git-commit-tree 9e4d085838e4e62a8c4236a6713a7dd8d7b07b4e -p HEAD usage: git-commit-tree <sha1> [-p <sha1>]* < changelog + commit= + echo
Thomas