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 committed Sep 29, 2020
2 parents 4137c4c + 4da0e1a commit ffc6b3a
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 ffc6b3a

Please sign in to comment.