Skip to content

Commit a2d342a

Browse files
committed
Include SHA in npm branch commits for easier search
1 parent 424de38 commit a2d342a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

resources/gitpublish.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,17 @@ node -e "var package = require('./package.json'); \
3737
# Retain marginal support for bower on this branch
3838
cp npm/package.json npm/bower.json
3939

40+
HEADREV=`git rev-parse HEAD`
41+
echo $HEADREV
42+
4043
cd npm
4144
git config user.name "Travis CI"
4245
git config user.email "github@fb.com"
4346
git add -A .
4447
if git diff --staged --quiet; then
4548
echo "Nothing to publish"
4649
else
47-
git commit -a -m "Deploy master to NPM branch"
50+
git commit -a -m "Deploy $HEADREV to NPM branch"
4851
git push > /dev/null 2>&1
4952
echo "Pushed"
5053
fi

0 commit comments

Comments
 (0)