Skip to content

Commit 334ade4

Browse files
Update issue link to #492
1 parent ad64adf commit 334ade4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

git/git.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ func RedactURL(u string) string {
502502
//
503503
// Limitation: SCP-like URLs (e.g., git@github.com:org/repo.git) are not supported as parent URLs
504504
// when the submodule uses a relative path. This is a known limitation.
505-
// See: https://github.com/coder/envbuilder/issues/487
505+
// See: https://github.com/coder/envbuilder/issues/492
506506
func ResolveSubmoduleURL(parentURL, submoduleURL string) (string, error) {
507507
// If the submodule URL is absolute (contains ://) or doesn't start with ./ or ../, return it as-is
508508
if strings.Contains(submoduleURL, "://") || (!strings.HasPrefix(submoduleURL, "../") && !strings.HasPrefix(submoduleURL, "./")) {
@@ -512,7 +512,7 @@ func ResolveSubmoduleURL(parentURL, submoduleURL string) (string, error) {
512512
// Check if parent URL is SCP-like (e.g., git@github.com:org/repo.git)
513513
// These cannot be properly parsed by net/url and relative submodule resolution is not supported.
514514
if scpLikeURLRegex.MatchString(parentURL) {
515-
return "", fmt.Errorf("relative submodule URL %q cannot be resolved: parent URL %q uses SCP-like syntax which is not supported for relative submodule resolution (see https://github.com/coder/envbuilder/issues/487)", submoduleURL, RedactURL(parentURL))
515+
return "", fmt.Errorf("relative submodule URL %q cannot be resolved: parent URL %q uses SCP-like syntax which is not supported for relative submodule resolution (see https://github.com/coder/envbuilder/issues/492)", submoduleURL, RedactURL(parentURL))
516516
}
517517

518518
// Parse the parent URL

0 commit comments

Comments
 (0)