GNU bug report logs - #78987
30.1; Unable to create new Git repository in Dired mode

Previous Next

Package: emacs;

Reported by: "Zipei Lu" <zipeilu <at> qq.com>

Date: Wed, 9 Jul 2025 21:57:09 UTC

Severity: normal

Found in version 30.1

Done: Sean Whitton <spwhitton <at> spwhitton.name>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> linkov.net>
To: Sean Whitton <spwhitton <at> spwhitton.name>
Cc: Eli Zaretskii <eliz <at> gnu.org>, stephen.berman <at> gmx.net, 78987 <at> debbugs.gnu.org
Subject: bug#78987: 30.1; Unable to create new Git repository in Dired mode
Date: Sun, 13 Jul 2025 19:51:25 +0300
The first 'C-x v v' works now.  Then I tried the second 'C-x v v'
on the new file, but it fails because I customized
'log-edit-hook' and added 'log-edit-maybe-show-diff' to it:

Debugger entered--Lisp error: (error "Failed (status 128): git --no-pager diff-index --exit-code -p HEAD  -- file")
  signal(error ("Failed (status 128): git --no-pager diff-index --exit-code -p HEAD  -- file"))
  error("Failed (%s): %s" "status 128" "git --no-pager diff-index --exit-code -p HEAD  -- file")
  vc-do-command("*vc-diff*" 1 "git" ("/tmp/dir/file") "--no-pager" "diff-index" "--exit-code" "-p" "HEAD" nil "--")
  vc-git-command("*vc-diff*" 1 ("/tmp/dir/file") "diff-index" "--exit-code" "-p" "HEAD" nil "--")
  vc-git-diff(("/tmp/dir/file") nil nil "*vc-diff*" nil)
  vc-call-backend(Git diff ("/tmp/dir/file") nil nil "*vc-diff*" nil)
  vc-diff-internal(nil (Git ("/tmp/dir/file")) nil nil nil)
  vc-diff(nil not-essential (Git ("/tmp/dir/file")))
  log-edit-diff-fileset()
  log-edit-maybe-show-diff()
  log-edit(vc-finish-logentry t ...
  vc-log-edit(("/tmp/dir/file") ...
  vc-start-logentry(("/tmp/dir/file") nil nil ...
  vc-checkin(("/tmp/dir/file") Git nil nil nil nil nil)
  vc-next-action(nil)
  dired-vc-next-action(nil)
  funcall-interactively(dired-vc-next-action nil)
  command-execute(dired-vc-next-action)

Do you have an idea how to handle an empty repository on the first commit?
Or this needs a separate bug report?




This bug report was last modified 31 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.