Skip to content

Commit 285541b

Browse files
committed
Make sure being offline won't block development workflow.
Adding a flag to ignore exit status to the git pull command. Only those witch already checked out in the past will benefit from this, since git clone will still block the build.
1 parent 3c5b1ca commit 285541b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ init:
4343
@@echo "Grabbing external dependencies..."
4444
@@if test ! -d test/qunit/.git; then git clone git://github.com/jquery/qunit.git test/qunit; fi
4545
@@if test ! -d src/sizzle/.git; then git clone git://github.com/jeresig/sizzle.git src/sizzle; fi
46-
@@cd src/sizzle && git pull origin master > /dev/null 2>&1
47-
@@cd test/qunit && git pull origin master > /dev/null 2>&1
46+
@@cd src/sizzle
47+
- @@git pull origin master > /dev/null 2>&1
48+
@@cd test/qunit
49+
- @@git pull origin master > /dev/null 2>&1
4850

4951
jquery: ${DIST_DIR} selector ${JQ}
5052
jq: ${DIST_DIR} ${JQ}

0 commit comments

Comments
 (0)