Skip to content
Snippets Groups Projects
Commit b1cf036e authored by Bhargav Gurappadi's avatar Bhargav Gurappadi
Browse files

Update tree id to track local merge branch name

With continous changes to upstream manifest branch naming it's getting
difficult to keep up with the name changes to local patch dirs.

Change-Id: Ia33773b00dd820dad5a50ab5c2b614348b08fd00
parent 7f11c2c5
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