Skip to content

Commit

Permalink
freeswitch: fix cloning the stable branch
Browse files Browse the repository at this point in the history
This automatically clones from the remote branch instead of doing the branch switch
locally.

The approach introduced in #125 does not work. It was working in the environment I was working on because I automatically did somethings to test the changes convenient. I did *not* test for completely clean machines. The old way would fail, because it's a shallow clone. It only kept one version of the repo's history and *ONLY* for the master branch. This is why it would fail when it switched to the stable branch. I apologize for the trouble.
  • Loading branch information
darylyu committed Oct 7, 2014
1 parent 71dda54 commit ca9e9e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions freeswitch/install.sh
Expand Up @@ -76,9 +76,8 @@ esac

# Install FreeSWITCH
cd $FS_BASE_PATH
git clone $FS_GIT_REPO --depth=1
git clone $FS_GIT_REPO --depth=1 --branch=v.1.2.stable
cd $FS_BASE_PATH/freeswitch
git checkout -b v1.2.stable origin/v1.2.stable
sh bootstrap.sh && ./configure --prefix=$FS_INSTALLED_PATH || exit 1
[ -f modules.conf ] && cp modules.conf modules.conf.bak
sed -i \
Expand Down

0 comments on commit ca9e9e6

Please sign in to comment.