Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
For the benefit of Cygwin, test for git-cmd.exe
author
Peter Anvin
<hpa@tazenda.sc.orionmulti.com>
Wed, 28 Sep 2005 23:56:08 +0000
(16:56 -0700)
committer
Peter Anvin
<hpa@tazenda.sc.orionmulti.com>
Wed, 28 Sep 2005 23:56:08 +0000
(16:56 -0700)
git.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
296fdc5
)
diff --git
a/git.sh
b/git.sh
index b67a1647e213b0357cefc86ba69ed15a2e62884b..ea710aafc130afb5b4adabcaab4ec996662cdc34 100755
(executable)
--- a/
git.sh
+++ b/
git.sh
@@
-11,7
+11,10
@@
case "$#" in
echo "git version @@GIT_VERSION@@"
exit 0 ;;
esac
echo "git version @@GIT_VERSION@@"
exit 0 ;;
esac
+
test -x $path/git-$cmd && exec $path/git-$cmd "$@" ;;
test -x $path/git-$cmd && exec $path/git-$cmd "$@" ;;
+
+ # In case we're running on Cygwin...
test -x $path/git-$cmd.exe && exec $path/git-$cmd.exe "$@" ;;
esac
test -x $path/git-$cmd.exe && exec $path/git-$cmd.exe "$@" ;;
esac