git-gui: Assume unfound commands are known by git wrapper
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>
This commit is contained in:
@ -315,7 +315,10 @@ proc _git_cmd {name} {
|
|||||||
#
|
#
|
||||||
set v [list $::_sh [gitexec git-$name]]
|
set v [list $::_sh [gitexec git-$name]]
|
||||||
} else {
|
} 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
|
set _git_cmd_path($name) $v
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user