Comment configurer gedit comme git-core.l'éditeur?

J'ai gedit configuré comme git-core.de l'éditeur.

git config --global core.editor "gedit"

Cela fonctionne bien, sauf s'il existe déjà un gedit fenêtres ouvertes. Dans ce cas, COMMIT_EDITMSG est ouvert dans la fenêtre existante et gedit retourne immédiatement. Git se retrouve avec un vide message de commit et échoue.

Ce site (http://fabianschuiki.wordpress.com/2012/05/20/use-gedit-as-git-editor/) suggère d'utiliser "gedit -s -w", mais je n'ai pas ces options (et de --nouveaux-fenêtre ne fonctionne pas):

$ gedit -V
gedit - Version 2.28.4

$ gedit --help
Usage:
  gedit [OPTION...] [FILE...] - Edit text files

Help Options:
  -h, --help                      Show help options
  --help-all                      Show all help options
  --help-gtk                      Show GTK+ Options
  --help-sm-client                Show session management options

Application Options:
  -V, --version                   Show the application's version
  --encoding=ENCODING             Set the character encoding to be used to open the files listed on the command line
  --list-encodings                Display list of possible values for the encoding option
  --new-window                    Create a new toplevel window in an existing instance of gedit
  --new-document                  Create a new document in an existing instance of gedit
  --display=DISPLAY               X display to use

OriginalL'auteur Demyn | 2013-10-18