summaryrefslogtreecommitdiff
path: root/util/board_status
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2015-04-28 17:49:30 +0200
committerPatrick Georgi <pgeorgi@google.com>2015-04-28 22:13:47 +0200
commitf60fc82ae95cfa160caf5d3edab7c68029dce1f7 (patch)
tree408fc527d0f9db891f1bf2d4d4e8d7bc7391455e /util/board_status
parentcccc9d40876aa5a2f756777a57646a4b95b38fde (diff)
downloadcoreboot-f60fc82ae95cfa160caf5d3edab7c68029dce1f7.tar.xz
board-status: Improve revision URL collection
It now assumes that origin points to the official repo (while there may be more) and doesn't assume anymore that there's a user ID that needs to be pruned (although it is, if present). Change-Id: Id4c5ee2cb7c08e997eaba1c750097a2e2bf51af5 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/10016 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'util/board_status')
-rwxr-xr-xutil/board_status/getrevision.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/board_status/getrevision.sh b/util/board_status/getrevision.sh
index 0a6b6c6923..9a949ffbb9 100755
--- a/util/board_status/getrevision.sh
+++ b/util/board_status/getrevision.sh
@@ -52,8 +52,8 @@ is_file_tracked() {
# Takes one optional argument: the path to inspect
git_url() {
# Note: This may not work as expected if multiple remotes are fetched from.
- echo $(git remote -v | \
- awk '/fetch/ {split($2, pieces, "@"); print pieces[2]; exit 0}')
+ echo $(git remote -v | grep "^origin\>" | \
+ awk '/fetch/ {print $2; exit 0}' | sed "s,^.*@,,")
}
# Returns a string indicating where others can get the current source code (excluding uncommitted changes)