summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/tree.rc8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/tree.rc b/scripts/tree.rc
index bbc2bd34..be115661 100644
--- a/scripts/tree.rc
+++ b/scripts/tree.rc
@@ -9,9 +9,11 @@ out=$4
fn checkstatus {}
-git -C $repo read-tree --empty
-git -C $repo update-index --index-info <$index
-tree=`{git -C $repo write-tree} ; checkstatus
+GIT_INDEX_FILE=$tag.index {
+ git -C $repo read-tree --empty
+ git -C $repo update-index --index-info <$index
+ tree=`{git -C $repo write-tree} ; checkstatus
+}
git -C $repo update-ref refs/tags/$tag $tree
if([ -e $out ]) {