diff --git a/repo-scripts/make-reference b/repo-scripts/make-reference
index 8aa027ee6699d443d2b963951dd0ddbf43c4c1c7_cmVwby1zY3JpcHRzL21ha2UtcmVmZXJlbmNl..d00044f3707a10472fd637a641d3d7c173da750b_cmVwby1zY3JpcHRzL21ha2UtcmVmZXJlbmNl 100755
--- a/repo-scripts/make-reference
+++ b/repo-scripts/make-reference
@@ -131,4 +131,6 @@
     # Tar everything
     print("building a reference tarball")
     with tarfile.open(repo_tarball, "w") as repo_tar_file:
+        repo_tar_file.add(repo_main)
+        # Add the benchrepo file at the end so it's easier to replace it
         repo_tar_file.add(repo_details)
@@ -134,5 +136,4 @@
         repo_tar_file.add(repo_details)
-        repo_tar_file.add(repo_main)
     print("result available at: {0}".format(repo_tarball))