summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgitk3
1 files changed, 1 insertions, 2 deletions
diff --git a/gitk b/gitk
index 5d150059df..e263b49f5a 100755
--- a/gitk
+++ b/gitk
@@ -3331,8 +3331,7 @@ proc gitknewtmpdir {} {
global diffnum gitktmpdir gitdir
if {![info exists gitktmpdir]} {
- set gitktmpdir [file join [file dirname $gitdir] \
- [format ".gitk-tmp.%s" [pid]]]
+ set gitktmpdir [file join $gitdir [format ".gitk-tmp.%s" [pid]]]
if {[catch {file mkdir $gitktmpdir} err]} {
error_popup "[mc "Error creating temporary directory %s:" $gitktmpdir] $err"
unset gitktmpdir