summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2014-08-10 15:18:22 +0200
committerPatrick Georgi <patrick@georgi-clan.de>2014-08-12 11:52:49 +0200
commit77b182a31a17e237da2350b0290301f5ce51d9d8 (patch)
tree57f12ff5176dff23d4f62656cd5323219c9e11aa /util
parent8f15f4715a8627c032c78636798fe9bf8d23c6e1 (diff)
board-status: be protocol agnostic on upload
Generate the board-status repo URL by replacing the last occurrence of "/coreboot" by "/board-status", which works across repo URL schemes (gerrit provides several). Change-Id: Iccb53bde994be619c1436815e13741d63738edf7 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/6574 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Diffstat (limited to 'util')
-rwxr-xr-xutil/board_status/board_status.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh
index de83d36325..49d2c73725 100755
--- a/util/board_status/board_status.sh
+++ b/util/board_status/board_status.sh
@@ -262,14 +262,14 @@ cmd $REMOTE dmesg "${tmpdir}/${results}/kernel_log.txt"
coreboot_dir=$(pwd)
if [ $UPLOAD_RESULTS -eq 1 ]; then
# extract username from ssh://<username>@review.coreboot.org/blah
- username=$(git config --get remote.origin.url | sed 's/ssh\:\/\///' | sed 's/@.*//')
+ bsrepo=$(git config --get remote.origin.url | sed "s,\(.*\)/coreboot,\1/board-status,")
cd "util/board_status/"
if [ ! -e "board-status" ]; then
# FIXME: the board-status directory might get big over time.
# Is there a way we can push the results without fetching the
# whole repo?
- git clone "ssh://${username}@review.coreboot.org:29418/board-status"
+ git clone $bsrepo
if [ $? -ne 0 ]; then
"Error cloning board-status repo, aborting."
exit $EXIT_FAILURE