dolt
dolt copied to clipboard
--branch global option doesn't work by itself
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