Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
A common development practise at our company is to use namespaced git branches, e.g.
wiifm/feature-x
release/2014-09-29
The current code only takes the last fragment of the branch, this is not idea. The attached patch resolves this by trimming from the front.
Comment | File | Size | Author |
---|---|---|---|
environment_indicator-git.patch | 635 bytes | wiifm |
Comments
Comment #1
jweowu CreditAttribution: jweowu commentedThis looks sensible to me.
I doubt there's any chance of 'refs/' occurring in the path, as the man page says the
--all
argument togit describe
means "use any ref found in refs/ namespace".git describe
automatically strips any 'tags/' prefix, as tags are its default output.So I think that 'heads/' really is the only prefix which needs dealing with. Or at least if something else did crop up, we'd probably prefer to see what it was.
Comment #2
bdone CreditAttribution: bdone as a volunteer commented+1 for this as RTBC.
Comment #3
e0ipsoVersion for D7 is unmaintained. I am sorry for the inconvenience.