git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Re: git gui create desktop icon currently does not work

From
Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Date
Feb 25, 2010, 07:53 UTC
Message-ID
<cb7bb73a1002242353h739786bdlb2c57df3438f5b7f@mail.gmail.com>
In-Reply-To
<20100223230238.GD11271@book.hvoigt.net>
On Wed, Feb 24, 2010 at 12:02 AM, Heiko Voigt <hvoigt@hvoigt.net> wrote:
Show 33 quoted lines
> On Tue, Feb 23, 2010 at 11:54:40PM +0100, Giuseppe Bilotta wrote:
>> On Tue, Feb 23, 2010 at 11:49 PM, Heiko Voigt <hvoigt@hvoigt.net> wrote:
> [...]
>> > From 5c22c39d530ffb308826629d974048d30cd32e53 Mon Sep 17 00:00:00 2001
>> > From: Heiko Voigt <hvoigt@hvoigt.net>
>> > Date: Tue, 23 Feb 2010 10:40:14 +0100
>> > Subject: [PATCH 1/2] git-gui: fix usage of _gitworktree when creating shortcut for windows
>> >
>> > Signed-off-by: Heiko Voigt <heiko.voigt@mahr.de>
>> > ---
>> >  git-gui/lib/shortcut.tcl |    2 +-
>> >  1 files changed, 1 insertions(+), 1 deletions(-)
>> >
>> > diff --git a/git-gui/lib/shortcut.tcl b/git-gui/lib/shortcut.tcl
>> > index 79c1888..8cad0e2 100644
>> > --- a/git-gui/lib/shortcut.tcl
>> > +++ b/git-gui/lib/shortcut.tcl
>> > @@ -16,7 +16,7 @@ proc do_windows_shortcut {} {
>> >                                        [info nameofexecutable] \
>> >                                        [file normalize $::argv0] \
>> >                                        ] \
>> > -                                       [file normalize [$_gitworktree]]
>> > +                                       [file normalize $_gitworktree]
>> >                        } err]} {
>> >                        error_popup [strcat [mc "Cannot write shortcut:"] "\n\n$err"]
>> >                }
>>
>> Ouch. Yes, I think your patch is obviously correct.
>>
>> (I'll go sit in a corner with my 'TCL Dunce' cap on for a while ...)
>
> No problem obviously nobody else saw this, but please test your patches
> in the future. That could have avoided this one.

You're right, although finding a Windows installation on which to test git is nontrivial for me. (I did mention this particular part was untested when I submitted it.)

> One thing which is missing from my patch is the cygwin part which, as I
> saw from your original patch, has the same problem.

Also, I'm wondering: does the Windows part actually need a [file nativename $_gitworktree], or is this automatically handled by the shortcut creation code?

-- 
Giuseppe "Oblomov" Bilotta
Previous: Heiko VoigtNext: Heiko Voigt
Message 4 of 12 in “git gui create desktop icon currently does not work”
  1. Heiko VoigtFeb 23, 2010
  2. Giuseppe BilottaFeb 23, 2010
  3. Heiko VoigtFeb 23, 2010
  4. Giuseppe BilottaFeb 25, 2010
  5. Heiko VoigtFeb 27, 2010
  6. 1/3 git-gui: fix usage of _gitworktree when creating shortcut for windowsHeiko Voigt, Feb 27, 2010
  7. 2/3 git-gui: fix PATH environment for mingw development environmentHeiko Voigt, Feb 27, 2010
  8. Pat ThoytsFeb 28, 2010
  9. Heiko VoigtFeb 28, 2010
  10. 3/3 git-gui: fix shortcut creation on cygwinHeiko Voigt, Feb 27, 2010
  11. Johannes SchindelinMar 8, 2010
  12. Giuseppe BilottaFeb 27, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.