Skip to content
This repository was archived by the owner on Feb 2, 2026. It is now read-only.
This repository was archived by the owner on Feb 2, 2026. It is now read-only.

onyo new --clone generates wrong commit message #785

@TobiasKadelka

Description

@TobiasKadelka

When running onyo new --clone <path> with the newest onyo version as of now, the commit message does not contain the name of the new asset, it uses the that I specified after --clone.

Version and Example:

❱ onyo --version
onyo 0.5.1.dev230+gd6b6af2

Then running:

❱ onyo new --clone groups/dp/Alex\ Waite/display_dell_u2722de.6PFX7H3 -d . --edit                                  2 !

This spawns the editor, I changed the serial to "AAAAAAA". The output and diff is then:

Effective changes:
--- None
+++ /Users/tkadelka/inventory/display_dell_u2722de.AAAAAAA
@@ -1 +1,22 @@
 ---
+type: display
+make: dell
+model:
+  name: u2722de
+serial: AAAAAAA
+inventory:
+  fzj: 00405830
+junet_hostname:
+
+display:
+  size: 27
+  resolution: 2560 x 1440
+  hz: 60
+
+connectors:
+  USB-A: 4
+  USB-C: 3
+  DP: 2
+  HDMI: 1
+  RJ45: 1
+  USB-PD: 90
Accept changes? (y)es / continue (e)diting / (s)kip asset / (a)bort command [Default: yes] y

--- Inventory Operations ---
New assets:
- display_dell_u2722de.AAAAAAA

Everything done is right, the new asset is as expected, and the diff output is also correct.
But the commit message generated is this:
new [1]: groups/dp/Alex Waite/display_dell_u2722de.6PFX7H3, it uses the path given to --clone, not the path of the actual new asset.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions