summaryrefslogtreecommitdiffstats
path: root/internal/utils/version.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/utils/version.go')
-rw-r--r--internal/utils/version.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/internal/utils/version.go b/internal/utils/version.go
index 950f6fa..1759ecc 100644
--- a/internal/utils/version.go
+++ b/internal/utils/version.go
@@ -10,7 +10,10 @@ import (
"github.com/spf13/cobra"
)
-var Version = "dev"
+var (
+ Version = "dev"
+ RepositoryURL = "[email protected]:repos/dborg.git"
+)
func CheckForUpdates(cmd *cobra.Command) error {
if !isTerminal() {
@@ -34,7 +37,7 @@ func CheckForUpdates(cmd *cobra.Command) error {
}
func getLatestRemoteTag() (string, error) {
- cmd := exec.Command("git", "ls-remote", "--tags", "--refs", "--sort=-v:refname", "git.db.org.ai/dborg")
+ cmd := exec.Command("git", "ls-remote", "--tags", "--refs", "--sort=-v:refname", RepositoryURL)
output, err := cmd.Output()
if err != nil {
return "", err