dolt icon indicating copy to clipboard operation
dolt copied to clipboard

--branch global option doesn't work by itself

Open macneale4 opened this issue 1 year ago • 0 comments

The following commands should all produce the same results, assuming you have a database called petridish and a branch called br1

lcl:~/Documents/data_dir_1/db1/petridish$ dolt --branch br1 status
The current directory is not a valid dolt repository.
lcl:~/Documents/data_dir_1/db1/petridish$ dolt --use-db petridish/br1 status
On branch br1
nothing to commit, working tree clean
lcl:~/Documents/data_dir_1/db1/petridish$ cd ../
lcl:~/Documents/data_dir_1/db1$ dolt --use-db petridish/br1 status
On branch br1
nothing to commit, working tree clean
lcl:~/Documents/data_dir_1/db1$ dolt --branch br1 status
The current directory is not a valid dolt repository.
lcl:~/Documents/data_dir_1/db1$ dolt --use-db petridish --branch br1 status
On branch br1
nothing to commit, working tree clean

I think this equally impacts all commands which use global args, not just status

macneale4 avatar Nov 08 '23 23:11 macneale4