From 4628d9418db7932f3bbbad2c8007a021d3885a3a Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Tue, 4 Oct 2022 01:47:31 +0000 Subject: 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. --- sys/src/cmd/git/compat | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sys/src/cmd/git') diff --git a/sys/src/cmd/git/compat b/sys/src/cmd/git/compat index f61ff71e9..5058b407c 100644 --- a/sys/src/cmd/git/compat +++ b/sys/src/cmd/git/compat @@ -6,10 +6,8 @@ opts=() 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 @@ fn cmd_init{ } shift } - ls >[1=2] git/init $opts $args } -- cgit v1.2.3