Skip to content

Commit

Permalink
For the benefit of Cygwin, test for git-cmd.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Anvin committed Sep 28, 2005
1 parent 296fdc5 commit 918e723
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ case "$#" in
echo "git version @@GIT_VERSION@@"
exit 0 ;;
esac

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

Expand Down

0 comments on commit 918e723

Please sign in to comment.