Skip to content

Commit

Permalink
git-gui: Treat git version as git --version
Browse files Browse the repository at this point in the history
We know that the version subcommand of git is special.  It does not
currently have an executable link installed into $gitexecdir and we
therefore would never match it with one of our file exists tests.
So we forward any invocations to it directly to the git wrapper, as
it is a builtin within that executable.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
  • Loading branch information
Shawn O. Pearce committed Jul 9, 2007
1 parent c672989 commit 70a7595
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions git-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ proc _git_cmd {name} {

if {[catch {set v $_git_cmd_path($name)}]} {
switch -- $name {
version -
--version -
--exec-path { return [list $::_git $name] }
}
Expand Down

0 comments on commit 70a7595

Please sign in to comment.