use current-branch in carthage build

This commit is contained in:
Engin Kurutepe
2016-03-17 15:00:32 +01:00
parent 229bce7f42
commit e11ed66d99
2 changed files with 3 additions and 2 deletions

View File

@@ -2,6 +2,6 @@
<Workspace
version = "1.0">
<FileRef
location = "self:AsyncDisplayKit.xcodeproj">
location = "self:">
</FileRef>
</Workspace>

View File

@@ -49,9 +49,10 @@ if [ "$MODE" = "examples" ]; then
elif [ -f "${example}/Cartfile" ]; then
echo "Using Carthage"
local_repo=`pwd`
current_branch=`git rev-parse --abbrev-ref HEAD`
cd $example
echo "git \"file://${local_repo}\" \"master\"" > "Cartfile"
echo "git \"file://${local_repo}\" \"${current_branch}\"" > "Cartfile"
carthage update --platform iOS
xctool \