Skip to content

Commit

Permalink
git-gui: Assume unfound commands are known by git wrapper
Browse files Browse the repository at this point in the history
If we cannot locate a command in $gitexecdir on our own then it may
just be because we are supposed to run it by `git $name` rather than
by `git-$name`.  Many commands are now builtins, more are likely to
go in that direction, and we may see the hardlinks in $gitexecdir go
away in future versions of git.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
  • Loading branch information
Shawn O. Pearce committed Jul 9, 2007
1 parent 02efd48 commit c672989
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion git-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,10 @@ proc _git_cmd {name} {
#
set v [list $::_sh [gitexec git-$name]]
} else {
error "No [gitexec git-$name]"
# Assume it is builtin to git somehow and we
# aren't actually able to see a file for it.
#
set v [list $::_git $name]
}
set _git_cmd_path($name) $v
}
Expand Down

0 comments on commit c672989

Please sign in to comment.