oh-my-fish/tools/travis_install_omf.sh
jeremiejig 961d051c2e Some Renaming. Creation of tools dir.
Moving and renaming install_fish.sh to travis_install_fish

Moving travis_* from tests to tools.

rename: fish_user_function/ -> functions_override/

renaming travis_test.fish to test_runner.fish
2015-09-27 14:59:20 +02:00

22 lines
520 B
Bash
Executable File

#!/bin/sh
git () {
case $1 in
clone)
command git "$@"
if test "$TRAVIS_PULL_REQUEST" != "false"; then
echo "! detecting a pull request !"
echo "$ git -C $OMF_PATH fetch origin +refs/pull/$TRAVIS_PULL_REQUEST/merge:"
git -C $OMF_PATH fetch origin +refs/pull/$TRAVIS_PULL_REQUEST/merge:
echo "$ git -C $OMF_PATH checkout -qf FETCH_HEAD"
git -C $OMF_PATH checkout -qf FETCH_HEAD
fi
;;
*)
command git "$@"
;;
esac
}
. $TRAVIS_BUILD_DIR/bin/install