WinGit: Fix several regressions with the VB helper script
commitbb9ea52d3da3655798b827dedfc03512e3943ae2
authorSebastian Schuberth <sschuberth@gmail.com>
Fri, 8 Jul 2011 17:06:04 +0000 (8 19:06 +0200)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 9 Jul 2011 10:34:49 +0000 (9 12:34 +0200)
tree3585b644c45fd460bba0f09ec0409b79eb6ec705
parent03cd80643bc8695892618be8237ba0186dbe25fb
WinGit: Fix several regressions with the VB helper script

The changes in eec84b0 introduced several regressions:

- The window icon is no longer set to the Git icon
- The window title is a random name instead of "Git Bash"
- Changes to the window properties can no longer be saved because the
  dynamically created shortcut is automatically deleted

This commit fixes the above issues while maintaining compatibility with UNC
paths. This is done by:

- Specifying an icon location
- Always using "Git Bash" instead of a random name
- Not automatically deleting the shortcut from the temporary directory

The last two points should not be a problem as "CreateShortCut" does not
overwrite but opens existing shortcuts.

Finally, the code was cleaned-up and simplified.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
share/WinGit/Git Bash.vbs