Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add 'git bash here' to Explorer context menu in folders. Fixes #84 #85

Closed
wants to merge 1 commit into from

3 participants

Mirth Hickford hvoigt Sebastian Schuberth
Mirth Hickford

I don't know how to build msysgit, so this is untested! Any help welcome.

Fix for #84

hvoigt
Owner

Thanks. You can build the installer by using the

/share/WinGit/release.sh

script. Please test.

Sebastian Schuberth sschuberth was assigned
Sebastian Schuberth
Owner

@matt-hickford I'm willing to test this for you, but please sign-off your commit first.

Sebastian Schuberth
Owner

I've squashed your commit with some modifications from my side that extend the background menu to Git GUI, too, and simplify the code a bit.

Sebastian Schuberth sschuberth closed this
Mirth Hickford

I see. Thanks Sebastian!

Mirth Hickford hickford deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 15 additions and 1 deletion.
  1. +15 −1 share/WinGit/install.iss
16 share/WinGit/install.iss
View
@@ -284,6 +284,18 @@ begin
// so we continue.
end;
end;
+
+ Command:='';
+ RegQueryStringValue(RootKey,'SOFTWARE\Classes\Directory\Background\shell\git_shell\command','',Command);
+ if Pos(AppDir,Command)>0 then begin
+ if not RegDeleteKeyIncludingSubkeys(RootKey,'SOFTWARE\Classes\Directory\Background\shell\git_shell') then begin
+ Msg:='Line {#__LINE__}: Unable to remove "Git Bash Here" shell extension.';
+ 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;
Command:='';
RegQueryStringValue(RootKey,'SOFTWARE\Classes\Directory\shell\git_gui\command','',Command);
@@ -1165,7 +1177,9 @@ begin
if IsComponentSelected('ext\reg\shellhere') then begin
if (not RegWriteStringValue(RootKey,'SOFTWARE\Classes\Directory\shell\git_shell','','Git Ba&sh Here')) or
- (not RegWriteStringValue(RootKey,'SOFTWARE\Classes\Directory\shell\git_shell\command','','"'+ExpandConstant('{syswow64}')+'\wscript" "'+AppDir+'\Git Bash.vbs" "%1"')) then begin
+ (not RegWriteStringValue(RootKey,'SOFTWARE\Classes\Directory\shell\git_shell\command','','"'+ExpandConstant('{syswow64}')+'\wscript" "'+AppDir+'\Git Bash.vbs" "%1"')) or
+ (not RegWriteStringValue(RootKey,'SOFTWARE\Classes\Directory\Background\shell\git_shell','','Git Ba&sh Here')) or
+ (not RegWriteStringValue(RootKey,'SOFTWARE\Classes\Directory\Background\shell\git_shell\command','','"'+ExpandConstant('{syswow64}')+'\wscript" "'+AppDir+'\Git Bash.vbs" "%V"')) then begin
Msg:='Line {#__LINE__}: Unable to create "Git Bash Here" shell extension.';
MsgBox(Msg,mbError,MB_OK);
Log(Msg);
Something went wrong with that request. Please try again.