Skip to content
Snippets Groups Projects
Unverified Commit 6345895a authored by Michael Muré's avatar Michael Muré Committed by GitHub
Browse files

Merge pull request #258 from MichaelMure/fixes

Bridges fixes
parents f35845d3 76b61293
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,7 @@ func NewToken(value, target string) *Token { ...@@ -43,7 +43,7 @@ func NewToken(value, target string) *Token {
} }
func (t *Token) ID() entity.Id { func (t *Token) ID() entity.Id {
sum := sha256.Sum256([]byte(t.Value)) sum := sha256.Sum256([]byte(t.Target + t.Value))
return entity.Id(fmt.Sprintf("%x", sum)) return entity.Id(fmt.Sprintf("%x", sum))
} }
......
...@@ -11,6 +11,7 @@ import ( ...@@ -11,6 +11,7 @@ import (
"net/http" "net/http"
"os" "os"
"regexp" "regexp"
"sort"
"strconv" "strconv"
"strings" "strings"
"syscall" "syscall"
...@@ -471,6 +472,8 @@ func getValidGithubRemoteURLs(remotes map[string]string) []string { ...@@ -471,6 +472,8 @@ func getValidGithubRemoteURLs(remotes map[string]string) []string {
} }
} }
sort.Strings(urls)
return urls return urls
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment