diff --git a/goodnight.sh b/goodnight.sh index a0caf328..f68a07ea 100755 --- a/goodnight.sh +++ b/goodnight.sh @@ -2,7 +2,9 @@ set -e -git branch -f nightly @ +# sync 'nightly' with the current branch. +CURR_BRANCH="$(git branch --show)" +git branch -f nightly "$CURR_BRANCH" git push -f origin nightly # create a git hook for this repo