summaryrefslogtreecommitdiff
path: root/scripts/tree.rc
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2016-04-22 06:32:59 +0000
committerMichael Forney <mforney@mforney.org>2016-04-23 16:51:19 -0700
commit66ed83a51f7752464befbb48c08759293da32b4c (patch)
treee54da8d69daa699eb671d217e7bc6130c09bae5f /scripts/tree.rc
parentf80319a9b838e3e272409e507d8a0b870cd98535 (diff)
Don't use head -c -1; it's not portable
Diffstat (limited to 'scripts/tree.rc')
-rw-r--r--scripts/tree.rc2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/tree.rc b/scripts/tree.rc
index 12bf9c32..d42f5bd6 100644
--- a/scripts/tree.rc
+++ b/scripts/tree.rc
@@ -8,7 +8,7 @@ index=$3
fn checkstatus {}
-ifs=() { oldcwd=`{pwd | head -c -1} }
+oldcwd=`{pwd}
cd $repo
git read-tree --empty