From 77b182a31a17e237da2350b0290301f5ce51d9d8 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Sun, 10 Aug 2014 15:18:22 +0200 Subject: 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 Reviewed-on: http://review.coreboot.org/6574 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Edward O'Callaghan --- util/board_status/board_status.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util/board_status') 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://@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 -- cgit v1.2.3