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 Oct 2, 2020
2 parents eb7eedf + 45e3f61 commit 04985b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gitk-git/gitk
Original file line number Diff line number Diff line change
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 04985b4

Please sign in to comment.