ref: 4628d9418db7932f3bbbad2c8007a021d3885a3a
parent: 8f1867a19f7ca881a32878dcee08ddce11b5db36
author: Michael Forney <mforney@mforney.org>
date: Mon Oct 3 21:47:31 EDT 2022
git/compat: fix init The while condition was wrong, there was an ls command (presumably for debugging), and it turned --bare into git/init -b, but those do different things and the latter takes an additional argument.
--- a/sys/src/cmd/git/compat
+++ b/sys/src/cmd/git/compat
@@ -6,10 +6,8 @@
args=()
fn cmd_init{
- while(~ $#* 0){
+ while(! ~ $#* 0){
switch($1){
- case --bare
- opts=(-b)
case --
# go likes to use these
case -*
@@ -19,7 +17,6 @@
}
shift
}
- ls >[1=2]
git/init $opts $args
}