[ET Trac] #2580: GetComponents assumes that default branch name is "master"

Roland Haas trac-noreply at einsteintoolkit.org
Wed Jun 15 08:59:45 CDT 2022


#2580: GetComponents assumes that default branch name is "master"

 Reporter: Roland Haas
   Status: new
Milestone: 
  Version: development version
     Type: bug
 Priority: minor
Component: GetComponents

Comment (by Roland Haas):

Hackathon \(Perl\).

A way to get the default branch name is using this code: 

```shell
default_branch=$(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@')
```

‌

--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2580/getcomponents-assumes-that-default-branch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.einsteintoolkit.org/pipermail/trac/attachments/20220615/c36af77d/attachment.html 


More information about the Trac mailing list