Skip to content
Snippets Groups Projects
Commit fa80de5a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Update tree id to track local merge branch name"

parents 7cf690f2 e62d1024
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@
# Attempt to identify the Android tree in use. On success one or more
# tree identifiers are output to stdout.
#
# Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
# Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
......@@ -39,7 +39,7 @@ fi
TREEID=
if [[ -f .repo/manifest.xml ]] ; then
# Tokenize <default revision="x_y_z"/> by '_'
TOKENS=$(repo manifest | sed -e \ '/<default.*/!d ; s/^.*revision="// ; s/".*$// ; s/refs\/tags\/// ; s/.*\/// ; s/_/ /g;')
TOKENS=$(repo info -l .repo/manifest | sed -e \ '/merge.*/!d ; s/^.*branch:"// ; s/.*b2g_//g;')
MANIFEST_ID=
for T in $TOKENS; do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment