From d5e0c2d77827f990c0757655b111b541f37d1d28 Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Wed, 7 May 2014 15:24:46 +1200 Subject: [PATCH] Correct source-repository comments git revisions are not references. Change-Id: If450e70e46cd30a2662b7246a2555c118ed33ad2 --- .../extra-data.d/98-source-repositories | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/elements/source-repositories/extra-data.d/98-source-repositories b/elements/source-repositories/extra-data.d/98-source-repositories index 5b472765..ab5684d9 100755 --- a/elements/source-repositories/extra-data.d/98-source-repositories +++ b/elements/source-repositories/extra-data.d/98-source-repositories @@ -119,12 +119,12 @@ function get_repos_for_element(){ pushd $REPO_DEST sudo git fetch $CACHE_PATH $REPOREF sudo git reset --hard FETCH_HEAD - # Get the reference in use - git_ref=$(git rev-parse FETCH_HEAD) + # Get the sha in use + git_sha=$(git rev-parse FETCH_HEAD) popd - # Write the reference being used into the source-repositories manifest - echo "$REPONAME git $REPOPATH $REPOLOCATION $git_ref" >> $GIT_MANIFEST + # Write the sha being used into the source-repositories manifest + echo "$REPONAME git $REPOPATH $REPOLOCATION $git_sha" >> $GIT_MANIFEST ;; tar) # The top level directory of the tarball mightn't have a fixed name i.e.