Permalink
Browse files

Update make publish

  • Loading branch information...
1 parent 7294845 commit aae17a10bdaa09ff95ba174eb812eee906bc6424 @ixti ixti committed Jul 8, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 Makefile
View
@@ -50,6 +50,10 @@ publish:
echo "Unclean working tree. Commit or stash changes first." >&2 ; \
exit 128 ; \
fi
+ @if test 0 -ne `git fetch ; git status | grep '^# Your branch' | wc -l` ; then \
+ echo "Local/Remote history differs. Please push/pull changes." >&2 ; \
+ exit 128 ; \
+ fi
@if test 0 -ne `git tag -l ${NPM_VERSION} | wc -l` ; then \
echo "Tag ${NPM_VERSION} exists. Update package.json" >&2 ; \
exit 128 ; \

0 comments on commit aae17a1

Please sign in to comment.