Change the message during force

23 views
Skip to first unread message

Kavita Golwalkar

unread,
Dec 21, 2023, 6:44:44 AM12/21/23
to Copybara OSS
Hi,
I have started exploring copybara for incorporating in larger project.

So I executed -
java -jar bazel-bin/java/com/google/copybara/copybara_deploy.jar copy.bara.sky --force

In destination repository I see commit message as -

Project import generated by Copybara.

Is there a way to change this message during initial copy ?

Regards,
Kavita

Kavita Golwalkar

unread,
Jan 2, 2024, 7:44:58 AM1/2/24
to Copybara OSS
Found the resolution to this.
Initial message is hard coded, so not possible to override the same.
Only option is to change message in code.

Chris Campos

unread,
Jan 3, 2024, 10:17:39 AM1/3/24
to Copybara OSS
You should be able to use the metadata.replace_message transform to change the message.


Regards,
Chris

Reply all
Reply to author
Forward
0 new messages