HACKING: replace refs/publish/master with refs/for/master
[openocd.git] / tools / initial.sh
1 #!/bin/sh
2 TOPDIR=`pwd`
3 USERNAME=$1
4
5 if [ "x$1" = "x" ] ; then
6 echo "Usage: $0 <Username>"
7 exit 1
8 fi
9
10 add_remote()
11 {
12 remote_exist=`grep remote .git/config | grep review | wc -l`
13 if [ "x$remote_exist" = "x0" ] ; then
14 git remote add review ssh://$USERNAME@openocd.zylin.com:29418/openocd.git
15 git config remote.review.push HEAD:refs/for/master
16 else
17 echo "Remote review exists"
18 fi
19 }
20
21 update_commit_msg()
22 {
23 cd "${TOPDIR}/.git/hooks"
24 save_file=commit-msg-`date +%F-%T`
25 mv commit-msg $save_file
26 printf "%-30s" "Updating commit-msg"
27 status="OK"
28 wget -o log http://openocd.zylin.com/tools/hooks/commit-msg || status="FAIL"
29 echo $status
30 if [ $status = "FAIL" ] ; then
31 mv $save_file commit-msg
32 fi
33 chmod a+x commit-msg
34 }
35
36 add_remote
37 update_commit_msg

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)