[coreboot-gerrit] New patch to review for coreboot: 5d34dbf board-status: be protocol agnostic on upload

Patrick Georgi (patrick@georgi-clan.de) gerrit at coreboot.org
Sun Aug 10 15:22:40 CEST 2014


Patrick Georgi (patrick at georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/6574

-gerrit

commit 5d34dbfd6be98a4cd3368d9e82fe4b1d43e9f37e
Author: Patrick Georgi <patrick at georgi-clan.de>
Date:   Sun Aug 10 15:18:22 2014 +0200

    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 at georgi-clan.de>
---
 util/board_status/board_status.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh
index 7c321b3..d1b2b7f 100755
--- a/util/board_status/board_status.sh
+++ b/util/board_status/board_status.sh
@@ -190,14 +190,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



More information about the coreboot-gerrit mailing list