diff options
| -rw-r--r-- | scripts/tree.rc | 8 |
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 ]) { |
