summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/mageia-reset-and-import.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/mageia-reset-and-import.sh b/scripts/mageia-reset-and-import.sh
index 5461e52..ce03394 100755
--- a/scripts/mageia-reset-and-import.sh
+++ b/scripts/mageia-reset-and-import.sh
@@ -268,14 +268,14 @@ echo "Press any key to continue with the subversion import process".
read -n 1
git svn gc
-sha1=$(git rev-list --max-count=1 HEAD)
+fakesha1=$(git rev-list --max-count=1 HEAD)
echo
-echo -n "Updating trunk branch to include synthesized commit $sha1... "
-git update-ref -m "Reset to synthesized commit representing Magiea cleaned import (SVN Git)" refs/remotes/trunk $sha1
+echo -n "Updating trunk branch to include synthesized commit $fakesha1... "
+git update-ref -m "Reset to synthesized commit representing Magiea cleaned import (SVN Git)" refs/remotes/trunk $fakesha1
echo "done"
echo -n "Faking git-svn metadata to allow continuation... "
-printf "0000000: %08x%s\t................" $revision $sha1 | xxd -r -c24 >.git/svn/refs/remotes/trunk/.rev_map.$NEWSVNUUID
+printf "0000000: %08x%s\t................" $revision $fakesha1 | xxd -r -c24 >.git/svn/refs/remotes/trunk/.rev_map.$NEWSVNUUID
echo "done"
# Keep a small log of the sha1's etc.
@@ -283,9 +283,9 @@ if [ -z "$REPLAY" ]; then
if [ ! -f ../svn-import.log ]; then
echo "software,startingcommit,startingrevision,otherrevisions,skiprevisions,fakecommit" >../svn-import.log
fi
- echo "$SOFTWARE,$resetsha1,$revision,$morerevisions,$skiprevisions,$sha1" >>../svn-import.log
+ echo "$SOFTWARE,$resetsha1,$revision,$morerevisions,$skiprevisions,$fakesha1" >>../svn-import.log
else
- sed -i "s/,$synthesized\$/,$sha1/" ../svn-import.log
+ sed -i "s/,$synthesized\$/,$fakesha1/" ../svn-import.log
fi
echo "Continuing svn fetch"