create orphaned commit instead of a dangling one off HEAD

This commit is contained in:
Conduitry 2018-10-04 11:00:48 -04:00
parent 6d0522e240
commit d7c27e289f
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@ read NAME VERSION < <(node -e '
# determine current branch name, and create new temporary branch
ORIG_BRANCH=$(git symbolic-ref --short HEAD)
git checkout -b ${TEMP_BRANCH}
git add .
git checkout --orphan=${TEMP_BRANCH}
# untrack all files, and track the files that should be included in the published package
git rm --cached -r .