diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-07-12 08:45:56 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-07-12 08:45:56 (GMT) |
commit | 1b2782a5e2f88bf5e6e2cbb58e54fea015e21af5 (patch) | |
tree | 19c5485ad50623c4c44d9268fdfa5afa98bd2619 /git-gui/lib/shortcut.tcl | |
parent | 512e44b24501df0b4b231cc7f999f9646d96617b (diff) | |
parent | 20f1a10bfb6c31a3728a74bf1c33cb3cc5ac0c7e (diff) | |
download | git-1b2782a5e2f88bf5e6e2cbb58e54fea015e21af5.zip git-1b2782a5e2f88bf5e6e2cbb58e54fea015e21af5.tar.gz git-1b2782a5e2f88bf5e6e2cbb58e54fea015e21af5.tar.bz2 |
Merge branch 'maint' of git://repo.or.cz/git-gui into maint
* 'maint' of git://repo.or.cz/git-gui:
git-gui: Work around bad interaction between Tcl and cmd.exe on ^{tree}
git-gui: Don't linewrap within console windows
git-gui: Correct ls-tree buffering problem in browser
git-gui: Skip nicknames when selecting author initials
git-gui: Ensure windows shortcuts always have .bat extension
git-gui: Include a Push action on the left toolbar
git-gui: Bind M1-P to push action
git-gui: Don't bind F5/M1-R in all windows
git-gui: Unlock the index when cancelling merge dialog
git-gui: properly popup error if gitk should be started but is not installed
Diffstat (limited to 'git-gui/lib/shortcut.tcl')
-rw-r--r-- | git-gui/lib/shortcut.tcl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/git-gui/lib/shortcut.tcl b/git-gui/lib/shortcut.tcl index ebf72e4..a0a1b7d 100644 --- a/git-gui/lib/shortcut.tcl +++ b/git-gui/lib/shortcut.tcl @@ -9,6 +9,9 @@ proc do_windows_shortcut {} { -title "[appname] ([reponame]): Create Desktop Icon" \ -initialfile "Git [reponame].bat"] if {$fn != {}} { + if {[file extension $fn] ne {.bat}} { + set fn ${fn}.bat + } if {[catch { set fd [open $fn w] puts $fd "@ECHO Entering [reponame]" @@ -42,6 +45,9 @@ proc do_cygwin_shortcut {} { -initialdir $desktop \ -initialfile "Git [reponame].bat"] if {$fn != {}} { + if {[file extension $fn] ne {.bat}} { + set fn ${fn}.bat + } if {[catch { set fd [open $fn w] set sh [exec cygpath \ |