Public bug reported:

When running gitk in a git working copy directory, it starts, but
instead of displaying the history, it shows the following error:

 Error executing git log: wrong # args:
  sholuld be
 "safe_open_command_redirect cmd redir"

I was able to fix it (after copying it from /usr/bin to ~/bin):

--- /usr/bin/gitk       2025-07-03 19:57:43.000000000 +0200
+++ /home/choroba/bin/gitk      2025-07-09 11:42:20.565361414 +0200
@@ -497,8 +497,7 @@
     }
 
     if {[catch {
-        set fd [safe_open_command_redirect [concat git log --no-color -z 
--pretty=raw $show_notes \
-                        --parents --boundary $args "--" $files]]
+        set fd [safe_open_command [concat git log --no-color -z --pretty=raw 
$show_notes --parents --boundary $args "--" $files]]
     } err]} {
         error_popup "[mc "Error executing git log:"] $err"
         return 0
@@ -645,7 +644,7 @@
         set args $vorigargs($view)
     }
     if {[catch {
-        set fd [safe_open_command_redirect [concat git log --no-color -z 
--pretty=raw $show_notes \
+        set fd [safe_open_command [concat git log --no-color -z --pretty=raw 
$show_notes \
                         --parents --boundary $args "--" $vfilelimit($view)]]
     } err]} {
         error_popup "[mc "Error executing git log:"] $err"

** Affects: git (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2116253

Title:
  gitk displays an error instead of git history

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/git/+bug/2116253/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to