threads / patch / 23033

patchRevert "git-gui (Win): make starting via "Git GUI Here" on .git/ possible"

Subject: [PATCH] Revert "git-gui (Win): make starting via "Git GUI Here" on .git/ possible"

## tl;dr

2 messages between Mar 15, 2010 and Mar 15, 2010. Diffs are folded; open one to read it.

replies: 1people: 1as markdown or json

Markus Heidelberg· Mar 15, 2010, 23:20 UTC · lore
This reverts commit b01d4326040ec6b9d98baba32091c9458fc809d4.
This workaround for the Windows Explorer is not necessary anymore,
because git-gui has learnt to deal with the .git directory in commit
87cd09f4 (git-gui: work from the .git dir, 2010-01-23).
---
 windows/git-gui.sh |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
Show changes to windows/git-gui.sh +1 −6
diff --git a/windows/git-gui.sh b/windows/git-gui.sh
index 66bbb2f..53c3a94 100644
--- a/windows/git-gui.sh
+++ b/windows/git-gui.sh
@@ -3,12 +3,7 @@
 exec wish "$0" -- "$@"
 
 if { $argc >=2 && [lindex $argv 0] == "--working-dir" } {
-	set workdir [lindex $argv 1]
-	cd $workdir
-	if {[lindex [file split $workdir] end] eq {.git}} {
-		# Workaround for Explorer right click "Git GUI Here" on .git/
-		cd ..
-	}
+	cd [lindex $argv 1]
 	set argv [lrange $argv 2 end]
 	incr argc -2
 }
-- 
1.7.0.2.201.gbb6c1
Markus Heidelberg· Mar 15, 2010, 23:27 UTC · re: Markus Heidelberg · lore

[PATCH resend 2] Revert "git-gui (Win): make starting via "Git GUI Here" on .git/ possible"

This reverts commit b01d4326040ec6b9d98baba32091c9458fc809d4.

This workaround for the Windows Explorer is not necessary anymore, because git-gui has learnt to deal with the .git directory in commit 87cd09f4 (git-gui: work from the .git dir, 2010-01-23).

Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
---
Resend with Signoff.
 windows/git-gui.sh |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
Show changes to windows/git-gui.sh +1 −6
diff --git a/windows/git-gui.sh b/windows/git-gui.sh
index 66bbb2f..53c3a94 100644
--- a/windows/git-gui.sh
+++ b/windows/git-gui.sh
@@ -3,12 +3,7 @@
 exec wish "$0" -- "$@"
 
 if { $argc >=2 && [lindex $argv 0] == "--working-dir" } {
-	set workdir [lindex $argv 1]
-	cd $workdir
-	if {[lindex [file split $workdir] end] eq {.git}} {
-		# Workaround for Explorer right click "Git GUI Here" on .git/
-		cd ..
-	}
+	cd [lindex $argv 1]
 	set argv [lrange $argv 2 end]
 	incr argc -2
 }
-- 
1.7.0.2.201.gbb6c1

← back to recent threads