git-gui: fix usage of _gitworktree when creating shortcut for windows
This fixes msysGit issue 425. Signed-off-by: Heiko Voigt <heiko.voigt@mahr.de> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
This commit is contained in:
parent
2e0cda658e
commit
a197b1e89a
@ -16,7 +16,7 @@ proc do_windows_shortcut {} {
|
|||||||
[info nameofexecutable] \
|
[info nameofexecutable] \
|
||||||
[file normalize $::argv0] \
|
[file normalize $::argv0] \
|
||||||
] \
|
] \
|
||||||
[file normalize [$_gitworktree]]
|
[file normalize $_gitworktree]
|
||||||
} err]} {
|
} err]} {
|
||||||
error_popup [strcat [mc "Cannot write shortcut:"] "\n\n$err"]
|
error_popup [strcat [mc "Cannot write shortcut:"] "\n\n$err"]
|
||||||
}
|
}
|
||||||
@ -57,7 +57,7 @@ proc do_cygwin_shortcut {} {
|
|||||||
$sh -c \
|
$sh -c \
|
||||||
"CHERE_INVOKING=1 source /etc/profile;[sq $me] &" \
|
"CHERE_INVOKING=1 source /etc/profile;[sq $me] &" \
|
||||||
] \
|
] \
|
||||||
[file normalize [$_gitworktree]]
|
[file normalize $_gitworktree]
|
||||||
} err]} {
|
} err]} {
|
||||||
error_popup [strcat [mc "Cannot write shortcut:"] "\n\n$err"]
|
error_popup [strcat [mc "Cannot write shortcut:"] "\n\n$err"]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user