From 142c5870a9b6ba6f4d7af7bbdf46a72c22ee2983 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sat, 16 Apr 2016 02:01:32 -0700 Subject: Use the name "oldcwd" for previous working directory --- scripts/tree.rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') 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 -- cgit v1.2.3