Override node with zero value when creating client

I am creating a perforce client using

p4 client -o -t old_client new_client

I want to remove the Host variable from the perforce specification. I tried to override the node value with

p4 -H '' client -o -t old_client new_client

but still, the perforce client is created using the Hostinfo from command p4 info. Any idea how I can remove the Host parameter. I do this programmatically. So, opening the client file and deleting Hostwill not work for me.

+4
source share
1 answer

To remove the Host field from the workspace specification, do:

p4 client -o -t old_client new_client | grep -v Host: | p4 client -i

That is, just upload the Host field before sending the client form back to the server.

+5
source

Source: https://habr.com/ru/post/1546764/


All Articles