Skip to content

Commit 4bd102c

Browse files
committed
Remote server for some repos is now github.com
Reviewed-by: Tim Hudson <[email protected]> Reviewed-by: Matt Caswell <[email protected]> (Merged from #223)
1 parent 1bdb856 commit 4bd102c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

review-tools/ghmerge

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ fi
4848
PRNUM=
4949
TEAM=""
5050
ADDREVOPTS=""
51+
REMOTESRVR="github.openssl.org"
5152
# Parse JCL.
5253
shopt -s extglob
5354
while [ $# -ne 0 ]; do
@@ -56,19 +57,19 @@ while [ $# -ne 0 ]; do
5657
usage_exit
5758
;;
5859
--tools)
59-
WHAT=tools ; BUILD=no ; shift
60+
WHAT=tools ; BUILD=no ; REMOTESRVR="github.com" ; shift
6061
;;
6162
--web)
6263
WHAT=web ; BUILD=no ; shift
6364
;;
6465
--perftools)
65-
WHAT=perftools; BUILD=no; shift
66+
WHAT=perftools; BUILD=no; REMOTESRVR="github.com" ; shift
6667
;;
6768
--installer)
6869
WHAT=installer ; BUILD=no ; shift
6970
;;
7071
--technical-policies)
71-
WHAT=technical-policies ; BUILD=no ; shift
72+
WHAT=technical-policies ; BUILD=no ; REMOTESRVR="github.com" ; shift
7273
;;
7374
--fuzz-corpora)
7475
WHAT=fuzz-corpora ; BUILD=no ; shift
@@ -143,9 +144,9 @@ else
143144
fi
144145
ADDREVOPTS=${ADDREVOPTS# } # chop any leading ' '
145146

146-
[ "$REMOTE" = "" ] && REMOTE=`git remote -v | awk '/github.openssl.org:(openssl|omc|otc).*(push)/{ print $1; }' | head -n 1` # usually this will be 'upstream'
147+
[ "$REMOTE" = "" ] && REMOTE=`git remote -v | awk /$REMOTESRVR':(openssl|omc|otc).*(push)/{ print $1; }' | head -n 1` # usually this will be 'upstream'
147148
if [ "$REMOTE" = "" ] ; then
148-
echo Cannot find git remote with URL including 'github.openssl.org'
149+
echo Cannot find git remote with URL including "$REMOTESRVR"
149150
exit 1
150151
fi
151152

0 commit comments

Comments
 (0)