summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/tree.rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/tree.rc b/scripts/tree.rc
index b641c922..28916224 100644
--- a/scripts/tree.rc
+++ b/scripts/tree.rc
@@ -11,10 +11,10 @@ fn checkstatus {
status=()
}
-ifs=() { oldpwd=`{pwd | head -c -1} }
+ifs=() { oldcwd=`{pwd | head -c -1} }
cd $repo
git read-tree --empty
-git update-index --index-info <$oldpwd/$index
+git update-index --index-info <$oldcwd/$index
tree=`{git write-tree} ; checkstatus
git update-ref refs/tags/$tag $tree