diff options
author | Michael Forney <mforney@mforney.org> | 2022-10-04 01:47:31 +0000 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2022-10-04 01:47:31 +0000 |
commit | 4628d9418db7932f3bbbad2c8007a021d3885a3a (patch) | |
tree | 2868b82b352506555e8b67e96c033c7ca873f72f /sys/src/cmd/git | |
parent | 8f1867a19f7ca881a32878dcee08ddce11b5db36 (diff) |
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.
Diffstat (limited to 'sys/src/cmd/git')
-rw-r--r-- | sys/src/cmd/git/compat | 5 |
1 files changed, 1 insertions, 4 deletions
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 } |