I found that the git information returned from the API was not attributing the correct remote when multiple remotes were present in the git config.
Instead of just taking the first result, I've now added some regex to process the file. Since there's two matches that need to be done in sequence, I've ended up having to add more validity checks to the function
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/imputnet/cobalt/pull/1468
**Author:** [@Scrxtchy](https://github.com/Scrxtchy)
**Created:** 11/10/2025
**Status:** 🔄 Open
**Base:** `develop` ← **Head:** `version-info`
---
### 📝 Commits (1)
- [`385c534`](https://github.com/imputnet/cobalt/commit/385c5344bd87720d998f70ff6819a15deb4041e2) version info: detect correct remote
### 📊 Changes
**1 file changed** (+20 additions, -6 deletions)
<details>
<summary>View changed files</summary>
📝 `packages/version-info/index.js` (+20 -6)
</details>
### 📄 Description
I found that the git information returned from the API was not attributing the correct remote when multiple remotes were present in the git config.
Instead of just taking the first result, I've now added some regex to process the file. Since there's two matches that need to be done in sequence, I've ended up having to add more validity checks to the function
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/imputnet/cobalt/pull/1468
Author: @Scrxtchy
Created: 11/10/2025
Status: 🔄 Open
Base:
develop← Head:version-info📝 Commits (1)
385c534version info: detect correct remote📊 Changes
1 file changed (+20 additions, -6 deletions)
View changed files
📝
packages/version-info/index.js(+20 -6)📄 Description
I found that the git information returned from the API was not attributing the correct remote when multiple remotes were present in the git config.
Instead of just taking the first result, I've now added some regex to process the file. Since there's two matches that need to be done in sequence, I've ended up having to add more validity checks to the function
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.