From 3bfed364433cbbfec668bb192d1b95188c530c8d Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Wed, 12 Jun 2013 21:24:58 +0100 Subject: Rename a variable to be clearer as to what it represents --- scripts/mageia-reset-and-import.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/mageia-reset-and-import.sh b/scripts/mageia-reset-and-import.sh index 5bbef3b..5461e52 100755 --- a/scripts/mageia-reset-and-import.sh +++ b/scripts/mageia-reset-and-import.sh @@ -110,9 +110,9 @@ else # traverse back up the tag tree to find the first commit that *do not* # result in any changes (i.e. not an svn cp) and use that as our reference # comparison point. - refsha1=$(git rev-parse "$ref":) + reftreesha1=$(git rev-parse "$ref":) parentref=$ref - while [ $(git rev-parse --quiet --verify "$parentref"^: ) = "$refsha1" ]; do + while [ $(git rev-parse --quiet --verify "$parentref"^: ) = "$reftreesha1" ]; do parentref="$parentref"^ done @@ -326,11 +326,11 @@ git branch -D origin/master 2>/dev/null git for-each-ref --format='%(refname)' refs/heads/tags | cut -d / -f 4 | \ while read tag; do ref="refs/heads/tags/$tag" - refsha1=$(git rev-parse "$ref":) + reftreesha1=$(git rev-parse "$ref":) # Find the oldest ancestor for which the tree is the same parentref="$ref" - while [ $(git rev-parse --quiet --verify "$parentref"^:) = "$refsha1" ]; do + while [ $(git rev-parse --quiet --verify "$parentref"^:) = "$reftreesha1" ]; do parentref="$parentref"^ done parent=$(git rev-parse "$parentref") -- cgit v1.2.1