purpleidea / mgmt

Next generation distributed, event-driven, parallel config management!
https://purpleidea.com/tags/mgmtconfig/
GNU General Public License v3.0
3.67k stars 315 forks source link

Use more fields if they are there #662

Closed viq closed 3 years ago

viq commented 3 years ago

It would work in case of refs/heads/master but in case of refs/heads/feat/unify-functions would return just feat, which doesn't match what we need. This should fix this.

viq commented 3 years ago

Alternative instead of cut would be something like awk '{ FS = "/" } ; { for (i=3; i<=NF; i++) print $i }'

purpleidea commented 3 years ago

This failed correctly.