From a39a9ecc3a27be20a0684ecc80737e04661e2658 Mon Sep 17 00:00:00 2001 From: Kipras Melnikovas Date: Mon, 3 Apr 2023 11:37:01 +0300 Subject: [PATCH] goodnight.sh: sync `nightly` to current branch, not current commit 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 --- goodnight.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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