Hi!
To set up a git repository referring to
http://gerrit.googlecode.com/svn/documentation/2.0/project-setup.html,
i inputted the following commands in /srv/git/new/ :
$ git add . # include everything below ./ in the first commit:
$ git commit
("Creating a new repository" in
http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#creating-a-new-repository
)
When my inputting the last command 'git commit', i got some problem.
The error messages follow like this :
-------------------------------------------------------------------------------------------------------------------
root@suinnpark-desktop:/srv/git/new/project.git# git commit
Warning: unknown mime-type for "/srv/git/new/project.git/.git/
COMMIT_EDITMSG" -- using "application/*"
Error: no "edit" mailcap rules found for type "application/*"
fatal: There was a problem with the editor /usr/bin/edit.
-------------------------------------------------------------------------------------------------------------------
So i checked /etc/mailcap ...
-------------------------------------------------------------------------------------------------------------------
...
application/vnd.oasis.opendocument.chart; soffice -calc '%s';
edit=soffice -calc '%s'; test=test -n "$DISPLAY";
description="OpenDocument Chart"; nametemplate=%s.odc
application/vnd.oasis.opendocument.spreadsheet; soffice -calc '%s';
edit=soffice -calc '%s'; test=test -n "$DISPLAY";
description="OpenDocument Spreadsheet"; nametemplate=%s.ods
application/vnd.oasis.opendocument.spreadsheet-template; soffice -calc
'%s'; edit=soffice -calc '%s'; test=test -n "$DISPLAY";
description="OpenDocument Spreadsheet Template"; nametemplate=%s.ots
application/vnd.oasis.opendocument.graphics; soffice -draw '%s';
edit=soffice -draw '%s'; test=test -n "$DISPLAY";
description="OpenDocument Drawing"; nametemplate=%s.odg
....
text/html; /usr/bin/sensible-browser '%s'; description=HTML Text;
nametemplate=%s.html
text/*; more '%s'; needsterminal
application/x-debian-package; /usr/lib/mime/debian-view '%s';
needsterminal; description=Debian GNU/Linux Package; nametemplate=
%s.deb
audio/basic; /usr/lib/mime/playaudio '%s'; description=Basic uLaw
Audio; nametemplate=%s.au
----------------------------------------------------------------------------------------------------------------------------------
and also i check "update-alternatives"
----------------------------------------------------------------------------------------------------------------------------
root@suinnpark-desktop:/srv/git# update-alternatives --display editor
editor - status is manual.
link currently points to /usr/bin/emacs22
/usr/bin/vim.tiny - priority 10
slave editor.ru.1.gz: /usr/share/man/ru/man1/vim.1.gz
slave editor.pl.ISO8859-2.1.gz: /usr/share/man/pl.ISO8859-2/man1/vim.
1.gz
slave editor.it.ISO8859-1.1.gz: /usr/share/man/it.ISO8859-1/man1/vim.
1.gz
slave editor.1.gz: /usr/share/man/man1/vim.1.gz
slave editor.pl.UTF-8.1.gz: /usr/share/man/pl.UTF-8/man1/vim.1.gz
slave editor.it.1.gz: /usr/share/man/it/man1/vim.1.gz
slave editor.fr.UTF-8.1.gz: /usr/share/man/fr.UTF-8/man1/vim.1.gz
slave editor.fr.1.gz: /usr/share/man/fr/man1/vim.1.gz
slave editor.it.UTF-8.1.gz: /usr/share/man/it.UTF-8/man1/vim.1.gz
slave editor.pl.1.gz: /usr/share/man/pl/man1/vim.1.gz
slave editor.fr.ISO8859-1.1.gz: /usr/share/man/fr.ISO8859-1/man1/vim.
1.gz
/bin/ed - priority -100
slave editor.1.gz: /usr/share/man/man1/ed.1.gz
/bin/nano - priority 40
slave editor.1.gz: /usr/share/man/man1/nano.1.gz
/usr/bin/vim.basic - priority 30
slave editor.ru.1.gz: /usr/share/man/ru/man1/vim.1.gz
slave editor.pl.ISO8859-2.1.gz: /usr/share/man/pl.ISO8859-2/man1/vim.
1.gz
slave editor.it.ISO8859-1.1.gz: /usr/share/man/it.ISO8859-1/man1/vim.
1.gz
slave editor.1.gz: /usr/share/man/man1/vim.1.gz
slave editor.pl.UTF-8.1.gz: /usr/share/man/pl.UTF-8/man1/vim.1.gz
slave editor.it.1.gz: /usr/share/man/it/man1/vim.1.gz
slave editor.fr.UTF-8.1.gz: /usr/share/man/fr.UTF-8/man1/vim.1.gz
slave editor.fr.1.gz: /usr/share/man/fr/man1/vim.1.gz
slave editor.it.UTF-8.1.gz: /usr/share/man/it.UTF-8/man1/vim.1.gz
slave editor.pl.1.gz: /usr/share/man/pl/man1/vim.1.gz
slave editor.fr.ISO8859-1.1.gz: /usr/share/man/fr.ISO8859-1/man1/vim.
1.gz
/usr/bin/emacs22 - priority 0
slave editor.1.gz: /usr/share/man/man1/emacs.1emacs22.gz
Current `best' version is /bin/nano.
-------------------------------------------------------------------------------------------------------------------------
finally i checked this.. also..
--------------------------------------------------------------------------------------------------------------------------
root@suinnpark-desktop:/srv/git# ls -al /etc/alternatives/editor /usr/
bin/editor
lrwxrwxrwx 1 root root 16 2009-03-24 23:06 /etc/alternatives/editor -
> /usr/bin/emacs22
lrwxrwxrwx 1 root root 24 2009-01-14 14:21 /usr/bin/editor -> /etc/
alternatives/editor
-------------------------------------------------------------------------------------------------------------------------
but i couldn't find any cause ...
Any help??
i really appreciate it in advance : )