https://lakefs.io/ logo
#help
Title
# help
t

Tal Sofer

12/11/2023, 1:59 PM
I’m experimenting with
lakectl local
and ran into a problem during branch checkout - I first cloned my repo with -
Copy code
lakectl local clone <lakefs://tal-samples/main/>
Then, I created branch b1 on my repo, and tried to track it locally with
Copy code
lakectl local checkout . --ref b1
I’m getting the following error
Copy code
ref malformed lakefs URI
Error executing command.
Can you please help understanding the problem?
n

Niro

12/11/2023, 2:06 PM
Hi @Tal Sofer you need to provide a full ref URI. e.g.
lakefs://<repo-name>/<ref-name>
Also, please note that initally you have cloned a branch to your local env. In that case the behavior will be a bit strange since that path will always be looking at the main branch as source
t

Tal Sofer

12/11/2023, 3:00 PM
Thanks @Niro. How do I check that checkout worked? is this using
lakectl local status
?
n

Niro

12/11/2023, 3:03 PM
lakectl local list <data_path>
will provide you with the head the current path is pointing to if I remember correctly 🙂
4 Views