Skip to content

Commit

Permalink
Merge pull request #2549 from remybohmer/master
Browse files Browse the repository at this point in the history
[fix] Gitk fails to open on a bare Git repository on Windows
  • Loading branch information
dscho authored and Git for Windows Build Agent committed Apr 22, 2020
2 parents 8e8a12a + 83ce22d commit c41f569
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gitk-git/gitk
Expand Up @@ -12625,7 +12625,9 @@ set cdup {}
if {[expr {[exec git rev-parse --is-inside-work-tree] == "true"}]} {
set cdup [exec git rev-parse --show-cdup]
}
set worktree [exec git rev-parse --show-toplevel]
if {$hasworktree} {
set worktree [exec git rev-parse --show-toplevel]
}
setcoords
makewindow
catch {
Expand Down

0 comments on commit c41f569

Please sign in to comment.