diff options
| author | Michael Forney <mforney@mforney.org> | 2016-04-16 02:01:32 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2016-04-16 02:01:32 -0700 |
| commit | 142c5870a9b6ba6f4d7af7bbdf46a72c22ee2983 (patch) | |
| tree | dbc27bfbd749c8f9e3fc5eb80e343075f4ab2c28 /scripts | |
| parent | 0d95b9f263eb220e3c7438528c435e1d261cb783 (diff) | |
Use the name "oldcwd" for previous working directory
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/tree.rc | 4 |
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 |
