Merge pull request #1420 from iKarith/master

Don't use git -C and get rid of echo_cmd (doesn't do what it should)
This commit is contained in:
Twinaphex 2015-02-17 06:13:42 +01:00
commit cb40a28340

View File

@ -13,11 +13,6 @@ fi
WORKDIR=$(pwd)
echo_cmd() {
echo "$@"
"$@"
}
# A stripped-down version of the fetch_git rule from libretro-super
# Clones or pulls updates from a git repository into a local directory
@ -27,9 +22,13 @@ echo_cmd() {
fetch_git() {
fetch_dir="$WORKDIR/$2"
if [ -d "$fetch_dir/.git" ]; then
echo_cmd git -C "$fetch_dir" pull
echo "cd \"$fetch_dir\""
cd "$fetch_dir"
echo git pull
git pull
else
echo_cmd git clone "$1" "$fetch_dir"
echo "git clone \"$1\" \"$fetch_dir\""
git clone "$1" "$fetch_dir"
fi
}