@matheusbsbs / matheus-bagliano / commits / c67298902c
Fork 0

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>

Shawn O. Pearce committed Jul 9, 2007 at 02:13 UTC c67298902ca36579b4cc43c1868cdb41279ef21b
1 file changed +4 -1
git-gui.sh
+4 -1
@@ -315,7 +315,10 @@ proc _git_cmd {name} {
315 #
316 set v [list $::_sh [gitexec git-$name]]
317 } else {
318 - error "No [gitexec git-$name]"
318 + # Assume it is builtin to git somehow and we
319 + # aren't actually able to see a file for it.
320 + #
321 + set v [list $::_git $name]
322 }
323 set _git_cmd_path($name) $v
324 }