Closed viq closed 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.
refs/heads/master
refs/heads/feat/unify-functions
feat
Alternative instead of cut would be something like awk '{ FS = "/" } ; { for (i=3; i<=NF; i++) print $i }'
cut
awk '{ FS = "/" } ; { for (i=3; i<=NF; i++) print $i }'
This failed correctly.
It would work in case of
refs/heads/master
but in case ofrefs/heads/feat/unify-functions
would return justfeat
, which doesn't match what we need. This should fix this.