]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.boringcrypto] misc/boring: support codereview.cfg in merge.sh
authorFilippo Valsorda <filippo@golang.org>
Sun, 7 Feb 2021 22:49:39 +0000 (23:49 +0100)
committerFilippo Valsorda <filippo@golang.org>
Fri, 12 Feb 2021 15:34:46 +0000 (15:34 +0000)
Change-Id: I90f218cdfca6d9b86b1e8961b33fa2e63f799624
Reviewed-on: https://go-review.googlesource.com/c/go/+/290172
Trust: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Katie Hockman <katie@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
misc/boring/merge.sh

index 9e13e148007fe8598e4e8b15cc5e6fb19f318125..b897a5ba6615b49d6181ebabb2d43efd44a61c09 100755 (executable)
@@ -19,12 +19,14 @@ git worktree add --track -b "$BRANCH" "$WORKTREE" "origin/$TARGET"
 
 cd "$WORKTREE"
 export GIT_GOFMT_HOOK=off
-git merge --no-commit "$SOURCE" || echo "Ignoring conflict..."
+git merge --no-commit --no-stat "$SOURCE" || echo "Ignoring conflict..."
 [[ -f VERSION ]] && git rm -f VERSION
+git checkout --ours codereview.cfg && git add codereview.cfg
 git commit -m "all: merge $SOURCE into $TARGET"
 
 if ! git log --format=%B -n 1 | grep "\[$TARGET\] "; then
     echo "The commit does not seem to be targeting the BoringCrypto branch."
+    echo "(Or you are missing the git-codereview hooks.)"
     exit 1
 fi