summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2016-04-16 02:01:32 -0700
committerMichael Forney <mforney@mforney.org>2016-04-16 02:01:32 -0700
commit142c5870a9b6ba6f4d7af7bbdf46a72c22ee2983 (patch)
treedbc27bfbd749c8f9e3fc5eb80e343075f4ab2c28 /scripts
parent0d95b9f263eb220e3c7438528c435e1d261cb783 (diff)
Use the name "oldcwd" for previous working directory
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