Skip to content

Commit

Permalink
goodnight.sh: sync nightly to current branch, not current commit
Browse files Browse the repository at this point in the history
often would have unpushed commits
(because unfinished, eg need rebase/fixup etc),
end they wouldn't be in the current remote branch,
but would end up in nightly and in the remote nightly,
which we do not want.

Signed-off-by: Kipras Melnikovas <[email protected]>
  • Loading branch information
kiprasmel committed Apr 3, 2023
1 parent 42946d1 commit a39a9ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion goodnight.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a39a9ec

Please sign in to comment.