Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make fetchneedles work with modern Git repos like the example distri
* Avoid running into an error when a Git repository like our example distribution that does not use the `master` branch anymore is present * Avoid hard-coding the default branch name for test and needle repositories * Use `git rev-parse --abbrev-ref refs/remotes/origin/HEAD` instead which works with all test and needle repositories we have in our two production instances (after I created `.git/refs/remotes/origin/HEAD` in the SLE needles checkout; see added comment for details) * Keep the possibility to specify `branch` and `needles_branch` in case one wants to fetch a special branch * Tested locally with repos using master and main including the code branch for repairing the needle repos * See https://progress.opensuse.org/issues/166658
- Loading branch information