Skip to content

Commit 82d3444

Browse files
authored
Fix circle (segmentio#395)
* fix fetch * test url * test url * remove comment * fix fetch remote
1 parent 90638c7 commit 82d3444

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.circleci/config.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,17 @@ jobs:
4949
mkdir -p /home/circleci/project
5050
cd /home/circleci/project
5151
git clone "$CIRCLE_REPOSITORY_URL" .
52-
git fetch --force origin "${CIRCLE_BRANCH}/head:remotes/origin/${CIRCLE_BRANCH}"
52+
if [ "CIRCLE_BRANCH" == "master" ]
53+
then
54+
git fetch --force origin "master:remotes/origin/master"
55+
fi
5356
5457
if [ -n "$CIRCLE_BRANCH" ]
5558
then
5659
git reset --hard "$CIRCLE_SHA1"
5760
git checkout -q -B "$CIRCLE_BRANCH"
61+
else
62+
git fetch --force origin "${CIRCLE_BRANCH}/head:remotes/origin/${CIRCLE_BRANCH}"
5863
fi
5964
6065
git reset --hard "$CIRCLE_SHA1"

0 commit comments

Comments
 (0)