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

[PATCH] Associate 'git gui clone' with the git:// protocol

From
Petr Baudis <pasky@suse.cz>
Date
Oct 3, 2008, 12:19 UTC
Message-ID
<20081003121908.GD10360@machine.or.cz>

This MSysGit patch makes the installer register 'git gui clone' as the Git URL protocol handler. This depends on the 'git gui clone' functionality itself, of course - currently in the process of getting accepted upstream (hopefully).

Signed-off-by: Petr Baudis <petr.baudis@novartis.com>
---
Sorry if the line offsets are a bit off.
diff --git a/share/WinGit/install.iss b/share/WinGit/install.iss
index 05fdae6..82e8ecf 100644
--- a/share/WinGit/install.iss
+++ b/share/WinGit/install.iss
@@ -484,6 +484,16 @@ begin
             // so we continue.
         end;
     end;
+
+    if (not RegWriteStringValue(HKEY_CLASSES_ROOT,'git','','URL:Git Protocol'))
+    or (not RegWriteStringValue(HKEY_CLASSES_ROOT,'git','URL Protocol',''))
+    or (not RegWriteStringValue(HKEY_CLASSES_ROOT,'git\shell\open\command','','"'+AppDir+'\bin\wish.exe" "'+AppDir+'\bin\git-gui" "clone" "%1"')) then begin
+        Msg:='Line {#emit __LINE__}: Unable to set up the "git://" URL protocol handler.';
+        MsgBox(Msg,mbError,MB_OK);
+        Log(Msg);
+        // This is not a critical error, the user can probably fix it manually,
+        // so we continue.
+    end;
 end;
 
 {
Message 1 of 1 in “Associate 'git gui clone' with the git:// protocol”
  1. Associate 'git gui clone' with the git:// protocolPetr Baudis, Oct 3, 2008

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.